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

ssh access - dropbear ignoring authorized_keys?

Discussion in 'HD/HDR-FOX T2 Customised Firmware' started by sierraindigo, Jan 21, 2012.

  1. sierraindigo

    sierraindigo New Member

    Hi all,

    New user; installed 1.15 custom firmware, then the web interface as per http://wiki.hummy.tv/wiki/Install_Full_Web_Interface
    Added (amongst other things) dropbear-ssh via the web package gui.

    My problem: I've created/mod/.ssh/authorized_keys with my public key, but I'm still always getting prompted for a password when I connect.

    Have tested from putty in win7 and openssh from ubuntu 10.04.

    Any suggestions? Previously when I've banged my head against a similar wall, the problem has either been permissions on the key file, or me using a British spelling of authorised...

    For completeness in case there's something obvious I've missed or I've put stuff in the wrong place:

    I installed the key via ssh-copy-id and it cmp's equally to my public key from other hosts I can access sucessfully.
    $ ssh root@hummy-lounge
    root@hummy-lounge's password:
    humax# ls -l /mod/.ssh/
    -rw-------    1 root    root          731 Jan 21 20:31 authorized_keys
  2. af123

    af123 Administrator Staff Member


    This works ok for me, but everything you've done looks right. I'll have a look at my setup later when I'm at home and see if I can suggest some things to try. Are you using a DSS or RSA key?
  3. af123

    af123 Administrator Staff Member

    Here's mine, I actually use both RSA and DSS from different hosts.
    Can you check the permissions on the actual /mod and /mod/.ssh directories too?

    air(3) ssh root@humax
    humax# ls -l /mod/.ssh
    -rw-------    1 root    root          1960 Jan  3 12:08 authorized_keys
    humax# ls -ld /mod/.ssh
    drwx------    2 root    root          4096 Jan  3 12:08 /mod/.ssh
    humax# ls -lLd /mod
    drwx------  19 root    root          4096 Jan 22 11:04 /mod
    I have a suspicion that your /mod may be 777.
  4. sierraindigo

    sierraindigo New Member

    Your suspicion was well founded, thanks!
    A quick
    chmod 700 /mod
    and all is now working as expected.

    Shame I didn't re-check this thread earlier - your first reply had me trying some new key pairs to test whether my usual 4096 bit rsa key was the problem :rolleyes:

    Thanks again for the fix, and for all the other sterling work making the box more usable.