vi /etc/ssh/sshd_config # 找到以下内容,并去掉注释符”#“ RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys
2.重启sshd服务
service sshd restart
3.更改.ssh目录权限
chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys #必须要改不然登陆不了
数千企业与站长的选择,7*24小时稳定运行