What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

SSH between 2 routers - trouble setting up keys

mcouture

Occasional Visitor
I am having trouble with being able to have SSH between 2 routers using keys.


I can get it so my workstation can Putty into the routers with keys, but I cannot get dropbear to work between both routers.

Latest try:

- dropbearkey -t rsa -f id_rsa
- create the id_rsa.pub from the output above (just the public section)
- copy id_rsa.pub to remote router (into GUI)
- on local router, ssh -i id_rsa userid@far-router-address

What am I missing?
 
copy id_rsa.pub to remote router (into GUI)

What error are you getting?

Couple of things to check:
  • I'm assuming you are allowing ssh connections from outside, in your remote router (just mentioning this in case you overlooked)
  • See if your remote router's port 22 is visible from your local router (if you have entware, install nmap and try nmap -p T:22 <remote_router>)
  • If you are able to, also make sure the ~/.ssh/authorized_keys on the remote router has 600 or 700 for octal permissions (if you are doing it in the UI, this should be automatically done)
 
Ah shucks....

It looks like I copied the public key with the "fingerprint" line....so once I got that out of there, I am able to ssh without passwords!

Thanks for helping redhat27!
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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