1:啟用root?
sudo passwd root
回車后輸入當前用戶密碼
接著輸入新賬戶密碼回車
2:啟用遠程登陸
編輯ssh配置文件
vi /etc/ssh/sshd_config
?搜索模式 n下一個 N上一個
PermitRootLogin搜索此內(nèi)容并回車
/PermitRootLogin
i編輯,參數(shù)改為yes(A行尾 I行首)
更改之后如下
PermitRootLogin yes
?保存并退出文章來源:http://www.zghlxwxcb.cn/news/detail-609168.html
:wq
?重啟ssh服務(wù)文章來源地址http://www.zghlxwxcb.cn/news/detail-609168.html
sudo service ssh restart
到了這里,關(guān)于ubuntu啟用root用戶以及ssh登陸的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!