Authentication refused: bad ownership or modes for directory /root
May 3 14:01:30 localhost sshd[22672]: Authentication refused: bad ownership or modes for directory /root
解决:
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys
May 3 14:01:30 localhost sshd[22672]: Authentication refused: bad ownership or modes for directory /root
解决:
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys
或者在sshd_config中改为StrictModes no