用Xshell root連接時顯示ssh服務器拒絕了密碼,應該是應該是sshd的設置不允許root用戶用密碼遠程登錄
修改 /etc/ssh/sshd_config文件,注意,安裝了openssh才會有這個文件,如果文件不存在請檢查是否安裝了openssh。
找到
# Authentication: LoginGraceTime 120 PermitRootLogin prohibit-password StrictModes yes
改成:
然后輸入命令:
/etc/init.d/ssh restart
重啟服務器即可