I'd like to ssh FROM my router to my desktop without using a password so I can script things on the router. I can do the reverse just fine by following the instructions on the wiki.
I've tried adding the contents of `nvram get eou_public_key` to my local ~/.ssh/authorized_keys prefacing it with both ssh-rsa and ssh-dsa and suffixing it with root@OpenWrt, but that doesn't work. I've also tried using dropbearkey on both /etc/dropbear/dropbear_rsa_host_key and dropbear_dsa_host_key to generate the public key using what I believe are my current private keys, but that hasn't worked either.
What has worked is something I'm not too keen on as it requires me to share the private key of a local user account.
I logged in as the samba user (has limited rights) and made an identity file by issuing the command on my desktop:
su samba
ssh-keygen -t rsa
Then I made that identity authorized to access my desktop by doing
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
I then scp'd the ~/.ssh/id_rsa private key file it created to my router.
Then on the router, I had to convert that to a format dropbear would use. Do that with
dropbearconvert openssh dropbear id_rsa /etc/dropbear/samba_identity
I can now ssh, scp, shfsmount, etc into my local computer by using the identity file without worry of plain text passwords:
ssh -i /etc/samba_identity samba@192.168.1.2
Has anone gotten this working without the need for an identity file?
[Edit] Spelling mistake, and confusing sentence
(Last edited by bobpaul on 8 Feb 2006, 21:31)