![]() |
#1 |
Member
![]() Posts: 21
Karma: 10
Join Date: Sep 2010
Device: Kindle 3, Kindle Voyage
|
SSH keys with dropbear?
Hello,
Is there a trick to getting SSH keys working with dropbear? I've only used them with the OpenSSH sshd before, and I can't seem to get it to work. On the Kindle, in /tmp/root aka /var/tmp/root (root's home), I have: Code:
[root@kindle root]# ls -ld .ssh drwx------ 2 root root 60 Oct 6 22:49 .ssh [root@kindle root]# ls -ld .ssh/* -rw-r--r-- 1 root root 391 Oct 6 22:54 .ssh/authorized_keys I can post the full output of ssh -vvv if needed but there really doesn't seem to be much of use there, the relevant bit is: Code:
debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/eli/.ssh/id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey,password |
![]() |
![]() |
![]() |
#2 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Because root's home is in a tmpfs partition, I patched dropbear to always look for the pubkeys in a single place: usbnet/etc/authorized_keys (and tweaked the permission checks to not die horribly because it's a vfat partition).
It handles files formatted for OpenSSH, so you shouldn't have any trouble with a key generated by openssh's tools (be it a rsa or dsa key) ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 21
Karma: 10
Join Date: Sep 2010
Device: Kindle 3, Kindle Voyage
|
Ah, that works perfectly -- thank you.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iLiad Access the hardware keys | thebohemian | iRex Developer's Corner | 9 | 07-05-2009 10:31 PM |
what is wrong with these keys | KingDani | iRex | 8 | 05-06-2009 11:42 PM |
iLiad PC and iliad together: ssh? dropbear? | daudi | iRex Developer's Corner | 10 | 01-13-2008 09:47 AM |
iLiad dropbear ssh: how to change root password? | daudi | iRex Developer's Corner | 2 | 01-10-2008 04:49 PM |
Use keys in Mobipocket | ddavtian | iRex | 0 | 10-14-2007 04:03 PM |