setaOffice

Unstructured Intelligence Gathering Desk

Archive for August, 2007

How to make public authentication work in SSH

Posted by Emerson Takahashi on August 28, 2007

After you set up the public key authentication in any Unix server, if it keeps asking for your password even after you put your public key in the ~/.ssh/authorized_keys file you need to check the file permissions.

To fix this problem, check if the owner and the file permission is set right on:
Home directory (700)
.ssh directory (700)
authorized_keys file (600)

Posted in Security, Sysadmin | Tagged: , , , | Leave a Comment »