Adding Keypair to existing EC2 instance

0 votes

I have two instances running which I cannot shutdown. I am currently unable to establish a secured shell connection to these instances. The reason is I do not have Pem file or the key pair that is required. Can I create a new Key Pair to create a connection with the existing instances.

If this isn't possible is there some other way I can get into the instances?

Apr 8, 2018 in AWS by hemant
• 5,790 points
1,136 views

1 answer to this question.

0 votes

No you can't. The reason is KeyPair associated to an instance cannot be replicated or replaced. It is a one time thing.

There is an outside chance of recovery, if it's an EBS boot AMI, here you can stop it and then take a snapshot of the volume. And then create a new volume from it. And be able to use it back to start the old instance, create a new image, or recover data.

This comes with risk of losing your data at ephemeral storage

answered Apr 8, 2018 by code_ninja
• 6,290 points

Related Questions In AWS

+2 votes
3 answers

Is it possible to ping AWS EC2 instance

1.Go to EC2 Dashboard and click "Running ...READ MORE

answered Nov 13, 2020 in AWS by shivam
• 140 points

edited Nov 13, 2020 by Gitika 19,842 views
0 votes
3 answers
0 votes
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,508 views
+2 votes
1 answer
0 votes
1 answer

S3 Static Website Hosting Route All Paths to Index.html

Yes there is an easy way to ...READ MORE

answered Apr 8, 2018 in AWS by code_ninja
• 6,290 points
3,196 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP