AWS Certified Solutions Architect - Associate (SAA-C02)

Sign Up Free or Log In to participate!

Detailed IAM users still have access via ssh, new users done

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?

1 Answers

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?