SSH Key Login Frustration
by mtsjr from LinuxQuestions.org on (#58CHC)
Hi All,
I have searched and read many articles about how to set this up properly. I have multiple Linux VPS's and have been really working hard on hardening security the best I can. I have made all the usual suggestion changes for logging into my VPS with SSH. So I figured I would try my hand at setting up authentication using Public and Pvt keys. Everything I read seems easy enough and I had a little bit of difficulty getting it to work on my first VPS but I was successful and it works perfect.
Now the frustrating part. I am not able to replicate the setup on my other VPS's. I am basically creating the keys using Putty Key Gen. I create the directory ~/.ssh/ and put a blank file called authorized_keys and paste my public key and save the file. I set the permissions that I have read I then use Putty to connect with the pvt key in the auth section. Like I said I already got it working on one Linux VPS but now no matter how many times I try.. .including creating new keys... or using the key set that work... I just get the msg that the server refused my key.
If anyone has any tips or can point me to a tutorial
Thanks!


I have searched and read many articles about how to set this up properly. I have multiple Linux VPS's and have been really working hard on hardening security the best I can. I have made all the usual suggestion changes for logging into my VPS with SSH. So I figured I would try my hand at setting up authentication using Public and Pvt keys. Everything I read seems easy enough and I had a little bit of difficulty getting it to work on my first VPS but I was successful and it works perfect.
Now the frustrating part. I am not able to replicate the setup on my other VPS's. I am basically creating the keys using Putty Key Gen. I create the directory ~/.ssh/ and put a blank file called authorized_keys and paste my public key and save the file. I set the permissions that I have read I then use Putty to connect with the pvt key in the auth section. Like I said I already got it working on one Linux VPS but now no matter how many times I try.. .including creating new keys... or using the key set that work... I just get the msg that the server refused my key.
If anyone has any tips or can point me to a tutorial
Thanks!