1. ssh目錄及authorized權(quán)限
chmod 600 authorized_keys
2. 修改sshd配置
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
3. 關(guān)閉selinux
getenforce #查看selinux是否開啟兵拢,enforce為開啟鹏倘,Permissive關(guān)閉
setenforce 0 #臨時關(guān)閉selinux