問題描述:
通過Vmware10.0.2安裝了Ubuntu 14.0.4.15 虛擬服務器,在SercureCRT中使用root帳號連接Ubuntu14.0.4.5的時候,提示“PassWord Authentication Failed,Please verify that the username and password are correct.”重新輸入密碼,反復檢查多次密碼并重新輸入正確的密碼,還是提示同樣的錯誤。
解決方法:
1、在虛擬機終端使用root帳號登錄,編輯/etc/ssh/sshd_config文件
vi /etc/ssh/sshd_config
2、找到Authentication配置部分,將PermitRootLogin without-password修改為PermitRootLogin yes,然后保存。
# Authentication:#PermitRootLogin without-passwordPermitRootLogin yesStrictModes yes
說明:sshd_config是ssh的配置文件,其中有一個選項 PermitRootLogin 用來配置是否允許root用戶登錄,默認的without-password表示不允許使用密碼進行全登錄認證,yes則是允許root登錄。
3、重啟ssh服務,既可以通過SercureCRT正常連接服務器
/etc/init.d/ssh restart
新聞熱點
疑難解答