1. 程式人生 > >Ubuntu下root賬戶無法使用xshell遠端連線解決方法總結

Ubuntu下root賬戶無法使用xshell遠端連線解決方法總結

問題現象:

  • 使用Xshell訪問ubuntu伺服器,無法連線

    問題現象

  • xshell測試非root使用者,可以正常連線,但是root使用者仍舊無法訪問

解決方法:

  1. 修改 /etc/ssh/sshd_config 檔案把PermitRootLogin Prohibit-password 新增#註釋掉

  2. 新新增:PermitRootLogin yes

  3. 重啟ssh服務 /etc/init.d/ssh restart

  4. 重新使用root連線,ok!

問題記錄:2017年12月11日12:12:09