1 Answer
- Newest
- Most votes
- Most comments
1
Please take a quick look at the existing articles here in the forum. They describe the exact solutions to your problem - including the necessary steps to convert your .pem file for PuTTY and standard recovery methods if you are locked out.
- https://repost.aws/knowledge-center/user-data-replace-key-pair-ec2
- https://repost.aws/articles/ARbsXhWGCRR7iiojB8BA9exw/how-to-recover-access-to-your-ec2-instance-after-losing-the-private-key
- https://repost.aws/knowledge-center/ec2-ppk-pem-conversion
see also:
- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replacing-key-pair.html
- https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-ec2reset.html
Another approach (last option): Also, here guide for this. If you need to fix configurations or keys from within the broken system itself, you can manually mount the volume on a rescue instance and use chroot.
Relevant content
- asked 2 years ago
