Cloud images of some popular operating systems do not let the user to log in as root
, yet they use a very standard user name (for example ec2-user
, ubuntu
) and allow these users to use passwordless sudo
.
What is the reason for this choice? Is it more secure than running as root?
Is it hoping that automated attacks will not try these obvious usernames? Is it somehow requiring different permissions to be present at the ssh server? Is this just a piece of marketing to remind me whose services am I using?
Or is it just trying to make me not use root account (hoping I do not use sudo su
all the time)?
I am assuming that only ssh keys are used to log in; no passwords.