Generally when we try to access server on AWS server as a user 'root'. It will give a message log in as ec2 user. It means you can not able to log in with directly using the root account.
Steps to revert -
If you want to revert this and disable root login so just insert below code into /root/.ssh/authorized_keys file before your key.
no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"ubuntu\" rather than the user \"root\".';echo;sleep 10"
Subscribe our channel for more tech stuff.
Our Website - [ Ссылка ]
Our Facebook Page - [ Ссылка ]
Instagram - [ Ссылка ]
Ещё видео!