[Q] Logging in with ssh and RSA key

sciurius

Senior Member
Nov 13, 2011
238
15
48
johan.vromans.org
UrukDroid (currently 1.6RC5), is it possible to gain access to the A101IT with ssh using a pair of keys?

I tried adding my pubkey to ~root/.ssh/authorized_keys but it doesn't work. According to "ssh -v" the key is not even tried.

I just hate to have to type my password over and over again :) .
 

sciurius

Senior Member
Nov 13, 2011
238
15
48
johan.vromans.org
[SOLVED] Logging in with ssh and RSA key

Some further investigation reveals that UrukDroid uses dropbear as SSH server (and client, and so on). Dropbear is started with the following command line:

Code:
/usr/local/sbin/dropbear -H /root/ -Y fffffff -S -p 22 -U -r /etc/ssh/dropbear_rsa_key -d /etc/ssh/dropbear_dss_key -P /var/run//sshd.pid -E -b /etc/ssh/banner.txt
Inspection of the documentation learns that the command line option -S means: 'disallow pubkey logins'. Removing this option from the startup file /etc/uruk.d/sshd (and a restart) allows logging in with a private key by adding the public key to ~root/.ssh/authorized_keys on the UrukDroid system.

Thanks all for this nice piece of software.

I just wonder... why is pubkey login disabled by default?