Results 1 to 3 of 3

Thread: Dropbear Public Keys

  1. #1

    Dropbear Public Keys

    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

    Code:
    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.....

  2. #2
    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:

    Code:
    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

  3. #3
    Quote Originally Posted by Tatek View Post
    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:

    Code:
    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.....

Similar Threads

  1. Replies: 3
    Last Post: 01-11-2014, 14:16
  2. How to to get sftp access with dropbear
    By velovite in forum WL-700g Tutorials
    Replies: 10
    Last Post: 20-03-2009, 03:56
  3. How to setup and get Dropbear ssh working?
    By kopi_bean in forum WL-700g Firmware Discussion
    Replies: 34
    Last Post: 20-04-2007, 00:25
  4. Replies: 3
    Last Post: 03-04-2007, 13:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •