ssh access - dropbear ignoring authorized_keys?

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.
Code:
$ 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
 
Hi,

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?
 
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?

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

I have a suspicion that your /mod may be 777.

Your suspicion was well founded, thanks!
A quick
Code:
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.
 
Back
Top