User(s) browsing this thread: 2 Guest(s)
|
How-to: Install and Configure Dropbear on the PCH
|
|
03-16-2009, 09:48 PM
|
|||
|
|||
|
RE: How-to: Install and Configure Dropbear on the PCH
Hi Racanu,
I was able to log in successfully in the egreat with your password! Thank you! The problem was the user and it's path. I noticed that all the working passwords are in the format $1$xxxxxx$xxxxxxxxxxxxxx, but the passwords given by the perl script are always in the format xxxxxxxxxxxxxx: Code: debian:~/egreat/passwd_gen# ./makepwd.pl create user passwordSo I suspect the perl script is not working.... So, if someone else if having the same issue, I'll share how I sorted it out: - Imagine you want to define a login/password for your NMT (eg: my_user/testpassword). - In a linux system, (I used the virtual machine described in the 1st Racanu post) create that user. - Define the password - Go to /etc/shadow and copy the password - Paste it into the /etc/shadow file in the NMT Code: debian:~/egreat/passwd_gen# useradd my_userGood luck! |
|||
|
03-16-2009, 11:57 PM
|
|||
|
|||
|
RE: How-to: Install and Configure Dropbear on the PCH
Hi Ciao (
)The $1$xxx form has something to do with the encoding of the password. I have this form of encoding since I've compiled the busybox with passwd. Before this, I've used the perl script and it worked ok for me (but then again, I've also had another firmware version ... hmm) Anyway, you may consider compiling the busybox too. Or I can share my binary which has everything except two or three commands that did not compile (missing libraries and so... I didn't need them anyway so I left out those commands). I took the sources from the OpenWrt project. Greets! (03-16-2009 09:48 PM)ciao Wrote: Hi Racanu, |
|||
|
03-26-2009, 08:40 PM
|
|||
|
|||
|
RE: How-to: Install and Configure Dropbear on the PCH
Great topic, I am trying to get this going (robust for new users) for in the CSI.
I get the following error message Code: ./dbclient 127.0.0.1I've installed it and did a passwd on root, the hash is from /etc/shadow is: /etc/passwd Code: root:x:0:0:root:/root:/bin/sh/etc/shadow Code: root:$1$pjWXfmuc$83KhhfCqms2dtltGinC7j/:10933:0:99999:7:::Anyone able to help me to help other to isntall dropbear?
Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer |
|||
|
03-31-2009, 02:08 AM
|
|||
|
|||
|
RE: How-to: Install and Configure Dropbear on the PCH
When I try to make the toolchain i get the following output/error(s):
Code: ~/Desktop/PCH/smp86xx_toolchain.20080505$ makeIt claims that makeinfo is not installed, which it is. I am not sure if that what causes the error. Any tips for what goes wrong? |
|||
|
03-31-2009, 03:42 PM
|
|||
|
|||
|
RE: How-to: Install and Configure Dropbear on the PCH
i will be trying to get this working tonight. i'll let you know which issues i will bump into.
on a more general note: i think there is potentially a large user group that would like to use ssh. especially as people learn the security riscs that regular ftp & telnet have. |
|||
|
04-03-2009, 09:12 AM
|
|||
|
|||
RE: How-to: Install and Configure Dropbear on the PCH
(03-26-2009 08:40 PM)Ger Teunis Wrote: Great topic, I am trying to get this going (robust for new users) for in the CSI. Which build? My build has been compiled without password authentication, only with public key authentication. And it will return "exited: No auth methods" if not found private key on your client and appropriate public key on server. I do this especial for not needing to modify /etc/passwd or /etc/shadow, case it's not writeable. |
|||
|
04-04-2009, 06:09 PM
(This post was last modified: 04-04-2009 06:56 PM by meskaya.)
|
|||
|
|||
|
RE: How-to: Install and Configure Dropbear on the PCH
Is it possible that one of you build the latest version of dropbear and give it to the community ?
I didn't managed to do it myself on Ubuntu 8.10 I am having a lot of problems. I had to patch : configure (problem of makeinfo version solution on page1) ecoff.c (rehash have have to be initialised unsigned int hash, rehash = 0) I had to modify: stdio.h (vscanf remove __wur, snprintf remove __wur) stdlib.h (mktemp remove __wur) I am now having this error : Code: ~/popcorn/smp/smp86xx_toolchain.20080505/toolchain_build_mipsel_nofpu/binutils-2.17/binutils/cxxfilt.c: In function ‘demangle_it’:It seems that configure have to be patched again to add a different CFLAGS and CXXFLAGS see here but I didn't managed to do it. Please build the latest version ![]() Thanks |
|||
|
04-05-2009, 06:44 PM
(This post was last modified: 04-05-2009 11:43 PM by projectmayhem.)
|
|||
|
|||
|
RE: How-to: Install and Configure Dropbear on the PCH
Hello!
I've installed dropbear on my PCH-A100... but when I try to login with PUTTY, I got the following error: Quote:Disconnected: No supported authentication mathods available I come out after the user name was typed (like root, or nmt). I really dont know why. ![]() May be it is for the authorized_keys file? I created the key with PUTTYGEN, copied and pasted in the file on nmt, located "/mnt/syb8634/etc/dropbear/.ssh". What I do wrong? Thank you very much! PS: I'm trying to connect from Windows Vista... |
|||
|
04-06-2009, 07:45 AM
|
|||
|
|||
RE: How-to: Install and Configure Dropbear on the PCH
(04-05-2009 06:44 PM)projectmayhem Wrote: Hello! I think it's because dropbear version you have installed only support authentication with a pair of keys. See the last part of the tutorial on page 1. |
|||
1 user says Thank You to meskaya for this post |
|
04-06-2009, 07:59 AM
|
|||
|
|||
RE: How-to: Install and Configure Dropbear on the PCH
(04-06-2009 07:45 AM)meskaya Wrote: I think it's because dropbear version you have installed only support authentication with a pair of keys. First of all, thank you for the reply. I used the build made by t0nik user... I tryed also the method of pair of key: I generated a public key with puttygen, copied and pasted in the file "authorized_key" placed in "/mnt/syb8634/etc/dropbear/.ssh". I have also copied this file under "/mnt/syb8634/home/root.ssh". I created the dirs "home" and "root" and ".ssh". Because in the tutorial explain to copy the public key in the home of the user you'll connect also. I dont know if this what it means. Connecting with PUTTY i loaded the PRIVATE key, saved with or without passphrase with puttygen. But I still got the same message, more: Quote:Server refused our key |
|||
|
04-06-2009, 10:23 AM
(This post was last modified: 04-06-2009 06:57 PM by meskaya.)
|
|||
|
|||
|
RE: How-to: Install and Configure Dropbear on the PCH
You should check your public key.
It must be written on one line. EDIT: You should check permissions I think it must be 600 on authorized_keys EDIT2: You also need to modify /etc/passwd to give user a shell (change /bin/true to /bin/sh) |
|||
1 user says Thank You to meskaya for this post |
|
04-08-2009, 09:44 AM
|
|||
|
|||
RE: How-to: Install and Configure Dropbear on the PCH
(04-06-2009 10:23 AM)meskaya Wrote: You should check your public key. ![]() I cant understand why, but still doesnt work.... ![]() I generated a public key with puttygen, SSH2-RSA: Code: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEA8hpISnh9d7P6SUoxuYcUgmnaNd1M9HBGXGnjvujp2aat5R0dixsoP9pg5HNcaekjyXZB9VRndfGT+1nklsmQFQIAx4W3LJTYE2O/h5ZldgDTQmNHbfpBrPLyWKc8XvBccOrsg8mS9wEcMrF/dPKf1X4OGPxPaGYEgNq00Rm040E= rsa-key-20090408I saved this string (copy and paste) on my PCH HDD, so in /share dir, in the file named "autorized_keys". The string is on one line... Code: -rwxr-xr-x 1 nmt nmt 225 Apr 8 08:21 /share/authorized_keysThen, I've done this: Code: cat /share/authorized_keys > /mnt/syb8634/etc/dropbear/.ssh/authorized_keysto copy the public key to correct path (I think...). The file in "/mnt/syb8634/etc/dropbear/.ssh/authorized_keys" is root:root, chmod 600: Code: -rw------- 1 root root 225 Apr 8 08:21 /mnt/syb8634/etc/dropbear/.ssh/authorized_keysThe etc passwd line for, root, is: Code: root:x:0:0:root:/root:/bin/shThank you very very much for your help...
|
|||
|
04-08-2009, 02:54 PM
|
|||
|
|||
RE: How-to: Install and Configure Dropbear on the PCH
Quote:The etc passwd line for, root, is: root's home is /root so you have to : - create a .ssh folder in /root - put your authorized_keys inside /root/.ssh - chown -R root:root on /root - chmod 700 /root - chmod 700 /root/.ssh - chmod 600 /root/.ssh/authorized_keys You also have to create dropbear keys : Quote:dropbearkey -t rsa -s 1024 -f dropbear_rsa_host_key Then : - create a dropbear folder in /etc - copy dropbear_rsa_host_key and dropbear_dss_host_key in /etc/dropbear - chown -R root /etc/dropbear - chmod 700 /etc/dropbear - chmod 600 /etc/dropbear/* Finally launch dropbear (I use the -s and -p options : -s to disable password logins and -p to specify a listen port) Of course you can put that on a script which will be executed after each reboot. Quote:Dropbear sshd v0.52 After that you should be able to connect to your dropbear server
|
|||
1 user says Thank You to meskaya for this post |
|
04-08-2009, 06:59 PM
|
|||
|
|||
|
RE: How-to: Install and Configure Dropbear on the PCH
meskaya.......
I LOVE YOU!! ![]() ![]() Code: BusyBox v1.5.0 (2008-07-10 18:07:27 MYT) Built-in shell (ash)Thank you very very much for your help... |
|||
|
04-09-2009, 12:06 PM
(This post was last modified: 04-09-2009 12:14 PM by t0nik.)
|
|||
|
|||
RE: How-to: Install and Configure Dropbear on the PCH
(04-08-2009 09:44 AM)projectmayhem Wrote:Sorry for later answer ![]() I think, you had a problem becase DOS/Windows-lineends. In my install script they converted by: Code: echo "`/bin/cat /share/authorized_keys`" | /bin/sed '' > /mnt/syb8634/etc/dropbear/.ssh/authorized_keys(04-08-2009 02:54 PM)meskaya Wrote:Are you have compiled it for pch? Share it?Quote:Dropbear sshd v0.52 I can't compile this right now case i need it from scratch: install linux, install sdk, find right option, compile. I try it soon. Best regards |
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]





![[+]](images/collapse_collapsed.gif)

)








