Puttygen without passphrase


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

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.

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

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

Puttygen enter passphrase for key

Puttygen with SSH2

Puttygen no passphrase

Puttygen import private key