up3i4a
Last Updated: February 25, 2016
·
518
· remear

SSH Public Key Authentication

If you're trying to get SSH public key authentication working and get the following:

Authentication refused: bad ownership or modes for directory /home/user

Fix your permissions with:

chmod g-w /home/user
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys
Filed Under