aws ubuntu 开启root

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正常登陆了

转载于:https://www.cnblogs.com/freelandun/p/6674506.html

你可能感兴趣的:(运维)