Solved Logging into SSH: How to set up/use [Authorized Keys] feature?

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

Wallace_n_Gromit

Senior Member
I thought I would try to set up SSH to login using [Authorized Keys]

I tried to find information using Search for "Authorized Keys" on snbforums. Didn't find anything specific as a step-by-step how to do this.

Has anyone tried using the PuTTygen app to set this up? I partially struggled my way through PuTTygen, copy and pasted the RSA Public Key into [Authorized Keys] field so it's on the router.

Logically, the matching key must be on the computer side/app side (i.e. putty). Dunno how that's done, the partial implicit directions are not intuitive.

When I SSH into the router it still asks for user name/password. (even after a reboot)

Oops!: I see something promising here: https://www.snbforums.com/threads/dropbear-ssh-without-remote-password.21070/
 
Last edited:

eibgrad

Very Senior Member
Using Putty, you need to go to Connection->SSH->Auth in the configuration, where you can Browse to find the Private Key.

It's also convenient to go to Connection->Data, where you can specify the username.

Of course, save the Session so you don't have to do this over and over again.
 

Wallace_n_Gromit

Senior Member
Using Putty, you need to go to Connection->SSH->Auth in the configuration, where you can Browse to find the Private Key.

It's also convenient to go to Connection->Data, where you can specify the username.

Of course, save the Session so you don't have to do this over and over again.
Thanks for those promising lead(s). I have a few errands to run, get back to this in a few hours. Expecting as much as 16" of snow next 2 days. Early light powder coming down now.
 

Wallace_n_Gromit

Senior Member
That helped especially watching the putty puttygen pageant youtube videos.
Using Putty, you need to go to Connection->SSH->Auth in the configuration, where you can Browse to find the Private Key.

It's also convenient to go to Connection->Data, where you can specify the username.

Of course, save the Session so you don't have to do this over and over again.
When I'm in Connection->SSH->Auth in the configuration I only see [About] [Help] [Open] [Cancel] I don't see a way to [Save] and NOT to keep having to [Browse] and keep finding/choosing the "Private key for authentication"

I have managed using Pageant to log in for the first time to my router just using my Username. Not sure yet if I lose everything with a reboot or computer shut down. Right now just playing around with it/trying different things. Kind of kewl! Regardless thanks for the leads. It really helped.
 
Last edited:

L&LD

Part of the Furniture
@Wallace_n_Gromit, you're welcome but you're not getting off that easily!

I'm waiting for your how-to guide, soon. :)
 

Wallace_n_Gromit

Senior Member
@Wallace_n_Gromit, you're welcome but you're not getting off that easily!

I'm waiting for your how-to guide, soon. :)
Yikes! :eek: My incompetent "How to" will be SURE way for me to get permanently banned from this site! :D It would be easier to write a "How NOT to..."
 

L&LD

Part of the Furniture
Why not? We already have too many how-to's! A how NOT to will be a refreshing change. :D
 

Make WiFi Great Again

Regular Contributor
how does one go about using Authorized keys on linux? namely, debian.
 

eibgrad

Very Senior Member
how does one go about using Authorized keys on linux? namely, debian.

Under your home directory, there should be the .ssh directory (hidden), where the ssh client will typically look for the authorized_keys file, config file, etc. At least for the openssh client. Putty manages its own files under the .putty directory.
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top