利用脚本自动建立ssh无密码登陆,系统版本为centos6.5
tailf /var/log/secure
Mar 18 15:35:05 a2 sshd[6521]: Authentication refused: bad ownership or modes for directory /root
Mar 18 15:35:05 a2 sshd[6521]: Authentication refused: bad ownership or modes for directory /root
解决方法:
chmod 0750 /root -R
or chown root.root root
时间: 2024-10-15 07:04:18