首页 > 其他 > 详细

AWS设置允许root登陆

时间:2018-08-07 00:02:19      阅读:216      评论:0      收藏:0      [点我收藏+]

Refer to the following to set root login:

sudo -s (to become root)
vi /root/.ssh/authorized_keys
Delete the lines at the begining of the file until you get to the words ssh-rsa.

vi /etc/ssh/sshd_config
Set the variable PermitRootLogin to PermitRootLogin without-password (without quotes)

sudo /etc/init.d/sshd restar

https://stackoverflow.com/questions/7407333/amazon-ec2-root-login

AWS设置允许root登陆

原文:https://www.cnblogs.com/xiangnan/p/9434104.html

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