1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSH with especified public key in SL with Thibor 15a

Discussion in 'HyperWRT Firmware' started by Lumute, May 8, 2006.

  1. Lumute

    Lumute Network Guru Member


    I wanted to configure a public key for SSH on my both routers, on the GS with Thibor 15b1 everything went well but on the SL with Thibor 15a I could not make it to work... I re-configured and re-tested several times and still nothing... Trying to troubleshoot I even compared the /tmp/.ssh/authorized_keys file and they are exactly the same file in both routers but still "Server refused our key" connecting to the SL

    Warning: I am not a Linux expert so the following can be very wrong in several ways...

    After looking into the problem, I think I found what is causing this:

    dropbear states that it looks for keys on ~/.ssh/authorized_keys

    On both routers the file is in /tmp/.ssh/authorized_keys but:

    On the GS HOME=/tmp but on the SL HOME=/home and /home/.ssh/authorized_keys does not exists.

    As I have password login still enabled I tried connecting and "export HOME='/tmp' " but I guess it only does it for the current ssh session... and olny that far reachs my linux knowledge...

    Also, while researching into this two questions araised:

    - The changelog states that dropbear was updated to 0.48.1 but executing "dropbear -h" says: "Dropbear sshd v0.48"... dropbear error?

    - What is the Rupan's patch? I could not find any information about it...

    Thanks in advance...
  2. Lumute

    Lumute Network Guru Member

    I tried creating a .ssh directory inside /home and coping the authorized_keys and it worked!!! :D oh man, I'm so proud of miself! (being so linux illiterate, an hour ago dropbear was just an animal for me :grin:)

    So, how can this be fixed permanently? and why HOME is different in both routers? I guess is related to the SL network storage features?
  3. Thibor

    Thibor Super Moderator Staff Member Member

    good fix, well done. this will be implemented in 15b
  4. Lumute

    Lumute Network Guru Member

    Thank you!!! This means a lot comming from you!

    Great! I love this SL router, I think it have a lot of potential... Thanks again for all your work!
  5. Lumute

    Lumute Network Guru Member

    As a temporary solution this line can be added to the startup script:

    ln -s /tmp/.ssh /tmp/home/.ssh

Share This Page