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

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


你可能感兴趣的:(centos,ssh,无密码登录)