Last Updated: February 25, 2016
·
850
· 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

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

Account takeover often starts in the browser, on the login page itself. A malicious script can read credentials, tokens, or one-time codes as the person types them.

Security insights from Cside