disqus4u Latest Questions

How can I enable Root User on AWS ec2 Linux instance?

JohnJ
Begginer

I would like to be able to log into my aws ec2 instance as a root user. How can I do it?

 

  1. This answer was edited.

    To enable root access to your AWS ec2 Linux instance, you need to go to the following path using your terminal:

    sudo nano /etc/ssh/sshd_config

    Then, you have to PermitRootLogin and make sure it’s assigned  yes as seen below:

    PermitRootLogin yes

    You will also need to edit the authorized_keys file. You can follow this guide and it will help you how to set up root access to your AWS ec2 instance.            

Leave an answer

Leave an answer