Checking the /var/log/secure, it said
xx sshd[xxx]: Authentication refused: bad ownership or modes for directory /root
Based on this, further google search reveals .ssh folder does not like to be writable by group users.
Here is a suggestion to .ssh folder to make sure the access to it is mostly limited to owner itself:
chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys
No comments:
Post a Comment