If my username and password to an EC2 instance was changed, how can I reset them?

0

This is not for my Root AWS access but rather an EC2 instance

Eric
asked 2 years ago1165 views
4 Answers
1

Is the instance Windows? Also, are you managing your EC2 instance through Systems Manager? If so, you can use Systems Manager to reset passwords.

For Windows see below (EC2 Rescue section):

If your instance is Linux and you are having an SSH issue, see below:

As always, before making changes, make sure to create a backup (EBS snapshot/AMI) to be able to roll back.

AWS
Taka_M
answered 2 years ago
0

No, it's Linux or Ubuntu

Eric
answered 2 years ago
0
answered 2 years ago
0

Thanks very much - This is exactly what we needed. Thanks for supplying the code too!

Eric
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions