how to root login on amazon ec2 ?

sudo su

vi /root/.ssh/authorized_keys

with i key open insert mode then delete until ssh-rsa line. don’t left any spaces.

service ssh restart

that’s all

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s