• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • The forum software that supports hummy.tv has been upgraded to XenForo 2.0!

    This is a major upgrade which changes the look and feel of the forum somewhat but brings a host of improvements too. Please bear with us as we continue to tweak things and report any issues or suggestions in Site/Forum Issues.

ssh access - dropbear ignoring authorized_keys?

#1
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
 

af123

Administrator
Staff member
#2
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?
 

af123

Administrator
Staff member
#3
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.
 
OP
OP
sierraindigo
#4
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.