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_keysWritten by Ben Mills
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ssh
Authors
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
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#