1、查看免密登录日志
tail -f /var/log/secure
2、编辑ssh配置文件,参考配置
vi /etc/pam.d/system-auth
vi /etc/pam.d/password-auth
3、修改/etc/ssh/sshd_config ---参考值
PermitRootLogin yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
RSAAuthentication yes
4、不行重新配置
搞定