PDA

Bekijk de volledige versie : Dropbear Public Keys



beatmag
04-06-2007, 13:51
Hi,

I have followed so many tutorials about getting dropbear to work with public keys. All my attempts were unsuccessful.

I am unsure what I have done wrong!

I am using WL500gp 1.9.2.7-7f

What I am doing is:
1. Followed the dropbear tutorial here pasted here again


mkdir -p /usr/local/etc/dropbear
dropbearkey -t dss -f /usr/local/etc/dropbear/dropbear_dss_host_key
dropbearkey -t rsa -f /usr/local/etc/dropbear/dropbear_rsa_host_key
mkdir -p /usr/local/sbin/
echo "#!/bin/sh" >> /usr/local/sbin/post-boot
chmod +x /usr/local/sbin/post-boot
echo "dropbear" >> /usr/local/sbin/post-boot


2. Start following a public key dropbear tutorial
Create .ssh folder in ~
create authorized_keys file from the puttygen app. All on the one line.

add -s to dropbear in post_boot

Try to use putty to login with private key.

It says Key not accepted or something, then I cant connect...

What am I doing wrong???????????

and also I have tried RSA 1024 and RSA 2048.

I have commited the flash memory many times, yet still nothing works.....

Tatek
04-06-2007, 20:20
Hi beatmag

Generate a key (in PUTTYGEN) without passphrase and save it as OpenSSH authorised_keys.

Then you have to convert it to dropbear format using dropbearconvert tool:


dropbearconvert openssh dropbear /etc/ssh/ssh_host_rsa_key /etc/dropbear_rsa_host_key

such a key you can move to ~/.ssh

... and enjoy public key authentication :)

cheers

Tatek

beatmag
05-06-2007, 04:19
Hi beatmag

Generate a key (in PUTTYGEN) without passphrase and save it as OpenSSH authorised_keys.

Then you have to convert it to dropbear format using dropbearconvert tool:


dropbearconvert openssh dropbear /etc/ssh/ssh_host_rsa_key /etc/dropbear_rsa_host_key

such a key you can move to ~/.ssh

... and enjoy public key authentication :)

cheers

Tatek


Hi thanks for the reply,

but I dont understand, my host keys were generated by the drop bear command line listed in 1.

Does my public keys need to be converted too?

All the tutorials I have read, dont mention this step. They just say, get a public key from puttygen and do the 'echo rsa ............. = root@abc.com > authorized_keys' command to make it a file, and place it into .ssh

Im not at home to try right now.....