Ubuntu 使用root 帐号开启 SSH 登录
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu 使用root 帐号开启 SSH 登录
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1 簡介
默認使用ubuntu用戶登錄,密碼為服務器配置時設置的密碼,可在重置密碼中修改
2.修改 root 密碼
sudo passwd root
3.修改配置文件
sudo vi /etc/ssh/sshd_config
找到下面相關配置:
注釋#Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes
更改為:
注釋 # Authentication:
LoginGraceTime 120
注釋#PermitRootLogin prohibit-password
PermitRootLogin yes
StrictModes yes
4.重啟ssh
sudo service ssh restart
接下來就可以putty使用root登錄了
總結
以上是生活随笔為你收集整理的Ubuntu 使用root 帐号开启 SSH 登录的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: nedata实时监控服务器运行情况
- 下一篇: Ubuntu 中python 2 升级