[心得]Ubuntu無法ssh登入

裝好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/

posted @ 2014-05-20 23:04  jeremyatchina  阅读(231)  评论(0编辑  收藏  举报