SSH伺服器拒絕了密碼,xshell連不上虛擬機器
來源:酷知科普網 1.43W
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重啟虛擬機器;問題即可解決