1 個回答
- 最新
- 最多得票
- 最多評論
1
Hello
This would occur when the instance was launched from AMI that was not sysprepped or admin account was changed. To resolve this issue you can perform one of two possible solutions
Possible solutions 1 : Manage instance via SSM and Use ec2launch to shutdown without sysprep
*NB ensure SSM agent is running on your instance , by Navigating to get system log
- Create iam role and attach it on the instance[https://docs.aws.amazon.com/systems-manager/latest/userguide/setup-instance-permissions.html]
- Reboot the instance, Navigate to EC2, Session manager tab, Click connect session manager
- Once you are logged on to the terminal , type net user <username> <password> , Click enter to run the command successful
<username> -represents user admin account that you will login ,<password> -create a new password based on your password complexity requirements
- Login to the instance, From the Windows Start menu, search for and choose Amazon EC2Launch settings.
- Select Shutdown without Sysprep. start the instance and you should have option to use your keypair to connect to the instance.
Possible solutions 2 : Offline method with EC2rescue Follow the link below on this repost offline method https://repost.aws/knowledge-center/reset-admin-password
已回答 2 個月前
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 9 個月前