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