Help getting SSH key to work on login

Machine

New Member
Ey, sorry to trouble you fellas but I've been struggling with this for a while now.

I've got dropbear on, and I can SSH from my linux machine over to the Humax, but it always asks for the password.

I've created a key pair on my local machine, and added the contents of the .pub file to /mod/.ssh/authorized_keys but it still asks for the password, I feel like I missed something super simple.

I've ran all these on the Humax
chmod 700 /mod
chmod 700 /mod/.ssh
chmod 600 /mod/.ssh/authorized_keys

I'm properly stumped, and it's not like I don't do this at work between servers all the time, except there the .shh folder is in home.

System Info :
Web interface version: 1.4.9-8
Custom firmware version: 3.13 (build 4028)
Humax Version: 1.03.12 (kernel HDR_CFW_3.13)
Loader Version: a7.31

Is there something daft I've missed or anything I can try to solve this please?
 
Thanks for this, I have got further using your instructions but I can still not login without a password.

So what I garnered from your post, and have managed to do is to add another user with my own password, so now when I "ssh soundwave" (my hummy box is called soundwave) It asks me for "dan@soundwave's password" and I can enter my own, custom password, and it lets me in.

I can still login using the default root/humax combo.

But switching passwords off just denies me :-(

I've done this with a couple of keys (Taken from your post)
echo "echo \"$(cat id_ed25519.pub)\" >>/mod/.ssh/authorized_keys"|ssh -T humaxip

and I can run cat /mod/.ssh/authorized_keys on the Hummy and it shows me EXACTLY the key which is returned when I run ssh-agent sh -c 'ssh-add; ssh-add -L' on my local machine here - yet once passwords are turned off, it just tells me dan@soundwave: Permission denied (publickey)

Super frustrating, I feel really close, and being able to login using my own user and pass is nice, but what have I cocked up here?
 
Awww man, this is embarrassing, but I'm posting what fixed it so some other poor sod doesn't do the same.

It occured to me on my run this morning that I'd not updated my packages and plugins for some time... I updated them when I got back, just tried and bam... I can ssh straight away with no password!!

Thanks so much for the help, especially prpr - to everyone else UPDATE PACKAGES :D
 
I expect you were trying to use a key type that wasn't supported on whatever old version of Dropbear you were using.
Installing the auto-update package is the recommended advice for most people, as is installing CF 3.14 (either via USB or the update package).
 
Back
Top