正常登录后
sudo -i 切换到root权限
vim /etc/ssh/vim sshd_config
将PasswordAuthentication no设置
为yes
重启sshd.service服务
systemctl restart sshd.service
不行就重启虚拟机
正常登录后
sudo -i 切换到root权限
vim /etc/ssh/vim sshd_config
将PasswordAuthentication no设置
为yes
重启sshd.service服务
systemctl restart sshd.service
不行就重启虚拟机