Permissions for .ssh autorized_keys file & directory
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”).
Leave a Reply
You must be logged in to post a comment.