1. ssh目录及authorized权限
chmod 600 authorized_keys
2. 修改sshd配置
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
3. 关闭selinux
getenforce #查看selinux是否开启,enforce为开启,Permissive关闭
setenforce 0 #临时关闭selinux