1. 程式人生 > >筆記 : Xshell5連接Ubuntu時提示SSH服務器拒絕了密碼

筆記 : Xshell5連接Ubuntu時提示SSH服務器拒絕了密碼

cat loging 虛擬機 修改 stat IT grace config shell

1、檢查虛擬機ssh服務是否開啟

service sshd status,如果沒有開啟,請執行service sshd start啟動該服務;

2 .修改 sudo vim /etc/ssh/sshd_config

找到# Authentication:
LoginGraceTime 120
PermitRootLogin without passwd
StrictModes yes

改成

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

重啟虛擬機

筆記 : Xshell5連接Ubuntu時提示SSH服務器拒絕了密碼