码迷,mamicode.com
首页 > 系统相关 > 详细

aws ubuntu 开启root

时间:2017-06-03 21:43:31      阅读:234      评论:0      收藏:0      [点我收藏+]

标签:aws   知识   13.10   href   auth   word   csdn   targe   lan   

Linux VPS没有ROOT权限是很难受的事,并且密码登陆也方便一些。
我的AWS VPS的LINUX版本是UBUNTU 13.10,首先用AWS证书验证的账户登录,


1、修改ROOT密码
sudo passwd root


2、sudo chmod 777 /etc/ssh/sshd_config
用完再把权限改回来


3、vi /etc/ssh/sshd_config
PermitRootLogin
这行改为
PermitRootLogin yes
PasswordAuthentication no
上面的no改为yes
UsePAM yes
上面的yes改为no


4、重启AWS VPS,就可以使用root正常登陆了

aws ubuntu 开启root

标签:aws   知识   13.10   href   auth   word   csdn   targe   lan   

原文地址:http://www.cnblogs.com/freelandun/p/6674506.html

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