1. 修改sshd_config
修改/etc/ssh/sshd_config
文件,找到 #Authentication
,將 PermitRootLogin
參數(shù)修改為 yes
。如果 PermitRootLogin 參數(shù)被注釋,請去掉首行的注釋符號(#)。 修改為PermitRootLogin yes
sudo nano /etc/ssh/sshd_config
2. 設(shè)置root密碼
sudo passwd root
3. 重啟SSH服務(wù)
sudo service ssh restart
文章來源:http://www.zghlxwxcb.cn/news/detail-696751.html
最后即可ssh遠(yuǎn)程連接 ~文章來源地址http://www.zghlxwxcb.cn/news/detail-696751.html
到了這里,關(guān)于Ubutnu允許ssh連接使用root與密碼登錄的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!