天天看点

ssh无密码登陆 Authentication refused: bad ownership or modes for directory /root

利用脚本自动建立ssh无密码登陆,系统版本为centos6.5

tailf /var/log/secure

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

本文转自 liqius 51CTO博客,原文链接:http://blog.51cto.com/szgb17/1621866,如需转载请自行联系原作者

继续阅读