vi /etc/ssh/sshd_config# 找到以下內容,並去掉注釋符”#“RSAAuthentication yesPubkeyAuthentication yesAuthorizedKeysFile .ssh/authorized_keys
2.重啟sshd服務
service sshd restart
3.更改.ssh目錄權限
chmod 700 ~/.sshchmod 600 ~/.ssh/authorized_keys #必須要改不然登陸不了
http://xxxxxx/Linuxjc/1134184.html TechArticle