首页 > 系统服务 > 详细

解决ubuntu获取root账号并开通ssh

时间:2019-12-18 22:29:57      阅读:109      评论:0      收藏:0      [点我收藏+]
1、设置root密码
sudo passwd root
2、修改etc/ssh/sshd_config文件
su - root
vi /etc/ssh/sshd_config
LoginGraceTime 120
#PermitRootLogin without-password
PermitRootLogin yes

PasswordAuthentication yes

StrictModes yes

3、重启ssh
service ssh restart

解决ubuntu获取root账号并开通ssh

原文:https://www.cnblogs.com/wuxyjian/p/12063940.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!