When I try to SSH into my server using public/private key authentication it rejects and I see this error:
Anyone know what this means and how to fix the error?"Authentication refused: bad ownership or modes for directory /home/username/.ssh"
What does 'ls -la /home/username' and 'ls -la /home/username/.ssh/' show?
This probably means that the permissions of your .ssh directory are wrongly configured. Try these commands on the server:
If you get a permission denied message, try it as root. But that also indicates that the permissions of your home directory are also wrongly configured. So try these commands on your home folder (/home/username) as well.Code:chown -R username /home/username/.ssh chmod -R 700 /home/username/.ssh
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks