Dropbear Digest, Vol 155, Issue 1

Laurent Bourdel lbourdel at yahoo.fr
Tue Oct 30 17:21:33 AWST 2018




Hi,

I fail to login with ssh client to dropbox

I use Udoo ARM board with busybox to install ssh server

I cross compiled dropbear under VirtualBox lubuntu and install binary to board ( /bin & /sbin)

I generate RSA key (ssh-keygen -t rsa ) under lubuntu and copied  content to /home/root/.ssh/authorized_keys on Udoo board

I run on Udoo board : dropbear -vFE

On VM lubuntu : ssh  -vvv root at 192.168.0.2

I add trace on dropbear sources and found problem come with function getpwnam to read /etc/password with 

errno=0;
pw = getpwnam(username);

dropbear_log(LOG_WARNING,"LBR %s %d %s",__FILE__ ,__LINE__, strerror(errno));
if (!pw) {
return;
}


[157] Jan 01 01:06:50 LBR common-session.c 595 No such file or directory

So it seems, there is problem to read /etc/password ?

It well located in correct folder :

~ # ls -l /etc
total 28
drwx------    3 root     user          4096 Oct 29  2018 dropbear
-rwxrwxrwx    1 root     user           192 Oct 28  2018 fstab
-rw-r--r--    1 root     user            23 Oct 29  2018 group
-rw-r--r--    1 root     user            10 Oct 29  2018 group-
drwxrwxrwx    2 root     user          4096 Oct 28  2018 init.d
-rwxrwxrwx    1 root     user           313 Oct 16  2018 inittab
-rw-r--r--    1 root     user            34 Oct 29  2018 passwd


~ # cat /etc/passwd 
root::0:0:root:/home/root:/bin/sh


Below are logs for client & server

If you can jelp, thx in advance

Laurent


More information about the Dropbear mailing list