The Blog Thing

Hints, tips and thoughts about IT, security and privacy

Permissions for .ssh autorized_keys file & directory

without comments

It’s one of those thing you don’t do often enough to remember how to, so when I ran into it again this morning, I decided to write it down :-)

To get asymmetric (public/private) key authentication working with sshd, you need to be the only one who has access to your ~/.ssh directory, so you need to do a

chmod 700 ~/.ssh

The ~/.ssh/authorized_keys file may be world readable ( “chmod 644 ~/.ssh/authorized_keys”).

Written by Vincent Verhagen

February 2nd, 2011 at 09:47 UTC

Posted in Uncatagorized

Tagged with ,

Leave a Reply

You must be logged in to post a comment.