Can't ssh from one unraid server to the other using keys.


Recommended Posts

I can't ssh into server 2 from server 1 using keys. Both are unraid systems. When I try to ssh from server 1 to server 2 is asks for a password. It works fine when I ssh into either server from my laptop using keys though.

I generated my keys on server server 1 and placed the files in /root/.ssh/.  I used ssh-copy-id to copy over the public key to server 2. I manually verified that they were indeed imported correctly on server 2 as well.

not really sure how to trouble shoot this issue and looking for some guidance.

Link to comment

Does the key file need to have a specific naming convention? seems like its looking for id_[encryptionName]

I'll generate new keys with this name and see if it works.

 

Edit: Ya looks like that was the problem. The key files need to have a specific naming convention (the default naming convention). Thanks for the help!

  • id_rsa
  • id_ecdsa
  • id_ecdsa_sk
  • id_ed25519
  • id_ed25519_sk
  • id_xmss
  • id_dsa
Edited by xxredxpandaxx
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.