AWS 允许root 远程登录Centos7系统

作者: poxiao 分类: Linux 发布时间: 2018-11-21 17:13

1.使用pem证书远程服务器

2.设置root密码

3.切换到root用户

4.进入到:/etc/ssh   编辑 sshd_config

修改前:

#PermitRootLogin yes

PasswordAuthentication no

修改后:

PermitRootLogin yes

PasswordAuthentication yse

 

然后重启sshd服务

 

 

好了,可以使用root账号登录了

 

 

 

参考资料:

 

https://www.dwhd.org/20150525_182436.html

本文链接:AWS 允许root 远程登录Centos7系统

转载声明:本站文章若无特别说明,皆为原创,转载请注明来源:破晓(http://www.code2048.net),谢谢!^^


如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

发表评论

邮箱地址不会被公开。 必填项已用*标注