|10-07-2010, 01:03 AM||#1|
Join Date: Sep 2010
Device: Kindle 3, Kindle Voyage
SSH keys with dropbear?
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:
[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:
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
|10-07-2010, 01:31 AM||#2|
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
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) . (It works fine with openssh's ssh-agent too).
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|iLiad Access the hardware keys||thebohemian||iRex Developer's Corner||9||07-05-2009 11:31 PM|
|what is wrong with these keys||KingDani||iRex||8||05-07-2009 12:42 AM|
|iLiad PC and iliad together: ssh? dropbear?||daudi||iRex Developer's Corner||10||01-13-2008 10:47 AM|
|iLiad dropbear ssh: how to change root password?||daudi||iRex Developer's Corner||2||01-10-2008 05:49 PM|
|Use keys in Mobipocket||ddavtian||iRex||0||10-14-2007 05:03 PM|