By default
Once you login with
$sudo su -
Edit the SSH daemon configuration file
Reload the SSH daemon configuration by running:
root user is not allowed to login but you can use ec2-user as indicated by others.Once you login with
ec2-user you switch to root and change the SSH configuration.$sudo su -
Edit the SSH daemon configuration file
/etc/ssh/sshd_config
Make changes PermitRootLogin without-passwordReload the SSH daemon configuration by running:
/etc/init.d/sshd reload
Next time you just need to do $sudo su - and you would be a root user.
confirm this by id - command
Comments