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实时监控服务器运行情况
- 下一篇: Ubuntu16.04添加设置启动项