So ive followed the demos and setup a user in AIM called ec2-user. then ive got an ec2 insurance up and running.
when I delete the IAM user I am still able to access the ec2 instance via ssh with it. conversely if I add a new user, I can’t access the ec2 instance with it.
when using the ssh newuser@ip -I key.pem it just gives access denied. but works fine with the old deleted user.
anyone know why?
The default user when ssh into a ec2 instance is ec2-user. It’s a linux user that is bound to the access keys you set up. It’s not an IAM account.