SSH Key not working – Server refused our key
Advertisements
[ad#ad-post]
I found this solution on https://adamwright.wordpress.com/2013/04/15/how-to-fix-server-refused-our-key-error-in-centos-6/
I received this error with Putty: “Server refused our key”
SecureCRT gave me this error: “unable to authenticate using keys from the location “<ssh-agent>”. The error was: cannot find object or property.”
[ad#ad-post]
This appears to be a problem with selinux. I had the problem on a rhel7 server, just one. All my other servers were fine. To fix it, i did the following:
restorecon -R -v /home/$USERNAME/.ssh
restorecon -R -v /$USERNAME/.ssh
Advertisements