Public key authentication not working on RHEL/CentOS

Problem: SSH asks for password even after updating the .ssh/authorized_keys in target host with user’s public key.

Reason: A permission issue

Fix: Login with password, in console run


chmod -R 700 ~

Log out and try again. The public key login should work now.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

45,334 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>