1. 程式人生 > >AWS設置允許root登陸

AWS設置允許root登陸

stack init gin etc until ria clas become class

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