Login attempt for nonexistent user
Matt Johnston
matt at ucc.asn.au
Wed Oct 31 21:35:35 AWST 2018
Hi Laurent,
My best guess is that it was built on lubuntu which uses glibc, but the Udoo board doesn't have the required /lib/somewhere/libnss*.so libraries - those get chosen at runtime based on /etc/nsswitch.conf. Building using a uclibc cross compiler would avoid that - how did you build it? Also which distribution does Udoo use?
If you can install strace on the Udoo board you can see what files are being tried with
strace -f -F -o logfile -s 300 dropbear -vFE
Cheers,
Matt
> On Tue 30/10/2018, at 5:28 pm, Laurent Bourdel <lbourdel at yahoo.fr> wrote:
>
>
> with correct subject :
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20181031/423c07e9/attachment.htm
More information about the Dropbear
mailing list