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

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

Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.

Leave a Comment

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