2 Answers
- Newest
- Most votes
- Most comments
0
Have you tried resetting the password for the admin password for EC2 instance .
Please check this one https://repost.aws/knowledge-center/ec2-windows-replace-lost-key-pair
answered a year ago
0
You can try using Session Manager to obtain a browser shell access to change your administrator password.
Try the steps listed at Connect to your Linux instance using Session Manager or Connect to your Windows instance using Session Manager for Linux or Windows respectively.
Restart your EC2 instance if you are unable to connect via Session Manager.
Once you obtained shell access, reset password by running the command net user administrator <YourPassword>
or sudo passwd ec2-user
for Windows or Linux respectively.
Relevant content
- asked 8 months ago
- asked 4 months ago
- Accepted Answerasked 5 months ago
- asked 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago