Xshell连接虚拟机突然被拒,提示再次输入密码。。。

sudo vim /etc/ssh/sshd_config

将 # Authentication:

LoginGraceTime 120

PermitRootLogin prohibit-password  改为 yes

重启SSH服务   service ssh restart

猜你喜欢

转载自www.cnblogs.com/tangpg/p/9166822.html