Enabling root access

Last Updated : Mar 22, 2021 |
Prolog information
You must use the root user to install the system layer. On RHEL installed on AWS, the root user is disabled by default, therefore you must enable it.
  1. Log in to your AWS instance using the AWS CLI as the ec2-user.
    ADDITIONAL INFORMATION:
    This is the default administration user, which does not require a login password.
  2. Run the following command to edit the /etc/ssh/sshd_config file:
    ADDITIONAL INFORMATION:
    sudo vi /etc/ssh/sshd_config
  3. Add the following line to the file:
    ADDITIONAL INFORMATION:
    PermitRootLogin yes
  4. Save the file.
  5. Run the following command to apply the changes:
    ADDITIONAL INFORMATION:
    sudo service sshd restart
  6. Set a password for the root user using the following command:
    ADDITIONAL INFORMATION:
    sudo passwd root