awsubuntu开启root
Linux VPS没有ROOT权限是很难受的事,并且密码登陆也方便一些。
我的AWS VPS的LINUX版本是UBUNTU 13.10,首先用AWS证书验证的账户登录,
1、修改ROOT密码
udo passwd root
2、sudo chmod 777 /etc/ssh/sshd_config
用完再把权限改回来
3、vi /etc/ssh/sshd_config
PermitRootLogi
这行改为
PermitRootLogin ye
PasswordAuthentication no
上面的no改为ye
UsePAM ye
上面的yes改为no
4、重启AWS VPS,就可以使用root正常登陆了