浏览次数:2762 关键词 ( 密码 ssh )
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 #必须要改不然登陆不了