Dropbear with authentication keys

475 views
Skip to first unread message

Jean-Matthieu DECHRISTÉ

unread,
Feb 22, 2014, 12:59:41 PM2/22/14
to al...@googlegroups.com
Hi,

I'm trying to connect ssh client to the DNS-323 with ssh authentication keys.
I've read that Alt-F use dropbear as ssh server.
- So I created a private key for dropbear :
dropbearkey -t rsa -f ~/.ssh/id_rsa.db
- I saved the public key,
- Then I converted it (private key) for my client in OpenSSH format :
dropbearconvert dropbear openssh ~/.ssh/id_rsa.db ~/.ssh/id_rsa
- I stored the public key into /etc/dropbear/authorizated_keys,
- set the right "0600" on the "dropbear" folder, "0700" on the "authorizated_keys" file.
For test purposes, I also copied the "authorizated_keys" file into the "/home/myuser/.shh/authorizated_keys" file

The client seems to send the key (ssh --vv) but it doesn't work (the server always respond that it will accept keys and password, so the client assume that the key file isn't good).
The system logs doesn't help me. It doesn't mention the key file...

Is it possible to connect with a key file ?

Thanks,

JMD

João Cardoso

unread,
Feb 22, 2014, 5:03:29 PM2/22/14
to al...@googlegroups.com
I just copied my (old) ssh rsa public key to the box and it worked:

scp ~/.ssh/id_rsa.pub dns-323:.ssh/authorized_keys
jcard@dns-323's password:

and  I could immediately login the box without supplying a password.
 
Thanks,

JMD

Jean-Matthieu DECHRISTÉ

unread,
Feb 22, 2014, 5:25:13 PM2/22/14
to al...@googlegroups.com
My bad ! The pub file was incomplete... 3hours lost...

Thank you !
Reply all
Reply to author
Forward
0 new messages