码迷,mamicode.com
首页 > 其他好文 > 详细

AWS设置允许root登陆

时间:2018-08-07 00:30:25      阅读:280      评论:0      收藏:0      [点我收藏+]

标签:flow   rmi   aws   nes   auth   authorize   init   config   password   

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登陆

标签:flow   rmi   aws   nes   auth   authorize   init   config   password   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!