Tuesday, February 9, 2021

how to recover security key file in aws ec2

Amazon EC2 doesn't keep a copy of your private key; therefore, if you lose a private key, there is no way to recover it. If you lose the private key for an instance store-backed instance, you can't access the instance; you should terminate the instance and launch another instance using a new key pair.

 

Note:- Instance should have mentioned following details, before doing any changes note-down or remember it.

Instance ID
Security Group Name 
Elastic IP Address

 

Create AMI of Instance

Step 1) Select Instance >> Click on Action >> Image And Template >> Create Image


 

Step 2) Write Image Name >> Description Name >> Click on "No Reboot" >> Click On create Image


 

Step 3) Click on AMI Under Image Section >> Select AMI >> Click on Launch


 

Following Below Steps, Note:- Select As old instance Configuration.

1. Choose AMI
2. Choose Instance Type
3. Configure Instance
4. Add Storage
5. Add Tags
6. Configure Security Group
7. Review

 

Step 4) Click on Launch >> Create New Key >> Download key >> and launch

 


Step 5) Click on Elastic Ip >> select old one >> Action >> Dissociate Elastic IP 


 

Step 6) Click on Elastic Ip >> select old one >> Action >> Assioate Elastic IP 


 

Step 7) Click on Instance >> Select New on instance >> Click on Associate



No comments:

Post a Comment

testing