ssh key-based login not working

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
MountainX
DD-WRT Novice


Joined: 28 Dec 2013
Posts: 41

PostPosted: Sat Oct 06, 2018 21:40    Post subject: ssh key-based login not working Reply with quote
Does dd-wrt have specific key requirements for ssh key-based login?

I can login with ssh via password, but I would like to disable password login and allow only key-based login. I know how to use ssh fairly well. However, I cannot get the key-based login to work on two different routers, both running dd-wrt (one standard, one kong build).

I assume ed_25519 keys may not work, so I tried 4096 bit rsa keys. Are those too big? Is there some other requirement I'm overlooking?

As stated, I do have password login working, so the basic sshd settings are correct. Also, I use ssh all day long to log into various servers, so there's not likely any problem with my general ssh settings, keys, etc. I have run ssh with "-vvv" (no errors, it simply doesn't accept the key) and I have checked /tmp/root/.ssh/authorized_keys and the public key is correct.
Sponsor
lazardo
DD-WRT User


Joined: 17 Apr 2014
Posts: 140
Location: SF Bay Area

PostPosted: Mon Dec 31, 2018 1:05    Post subject: Reply with quote
Enter your public key in Services->Secure Shell->authorized Keys, copy/paste in GUI.

In Administration->Management->Remote Access, select 'ssh management' at a minimum.

If still an issue, and your keys are correct, post a screen cap of the above sections for further checks.

Cheers,
lazardo
DD-WRT User


Joined: 17 Apr 2014
Posts: 140
Location: SF Bay Area

PostPosted: Mon Dec 31, 2018 19:11    Post subject: Re: ssh key-based login not working Reply with quote
MountainX wrote:
...
I assume ed_25519 keys may not work, so I tried 4096 bit rsa keys. Are those too big? Is there some other requirement I'm overlooking?
...


Didn't read with precision earlier, avoid elliptic. Between the natural limitations of embedded and dropbear, sometimes things that ordinarily work will silently fail.

I use 4k rsa keys for dd-wrt.

Cheers.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum