裝好ssh後,發覺無法用root登入,可是sshd_config接正確。

後來發現原因在於,Ubuntu沒有root帳號,但是可以透過sudo -s拿到root權限。

su root 密碼怎樣打也行不通,不過sudo -s卻可以。

總之就是要用sudo -s 後 執行passwd 建立帳號

 

ref. http://www.thegeekstuff.com/2009/09/ubuntu-tips-how-to-login-using-su-command-su-gives-authentication-failure-error-message/

相关文章:

  • 2022-12-23
  • 2021-05-16
  • 2021-09-05
  • 2021-09-22
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
猜你喜欢
  • 2021-09-29
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案