SSH服务器拒绝了密码,请再试一次。
操作方法
(01)症状:xshell通过ssh协议连接不上linux系统
(02)这时候可以登录虚拟机,不使用xshell操作1、检查sshd服务是否有开启,下图是有开启的;
(03)2、检查 /etc/ssh/ssh_config文件,ssh服务端口是否为22,Protocol协议版本是否为2,(一般为2安全。1为ssh 1不安全,有可能禁止登陆)找到# Authentication:LoginGraceTime 120PermitRootLogin without passwdStrictModes yes改成# Authentication:LoginGraceTime 120PermitRootLogin yesStrictModes yes重启虚拟机;问题即可解决