天天看點

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,如需轉載請自行聯系原作者

繼續閱讀