Friday, June 26, 2015

Cannot logged in with public key even after public key inside $HOME/.ssh on Centos

Things could be straight with Ubuntu, but not in my Centos VPS. So try the following if you met the same problem:

1) $HOME/.ssh/authorized_keys must be in 640 permission
2) $HOME/.ssh must be in 0700 permission

It should work right away later on.

No comments: