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,750 points
22 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 5,710 points

Related Questions In AWS

+2 votes
2 answers

Is it possible to ping AWS EC2 instance

Start by adding a new EC2 security group inbound ...READ MORE

answered Apr 9, 2018 in AWS by hemant
• 5,750 points
228 views
0 votes
3 answers
0 votes
2 answers
+13 votes
2 answers
0 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
• 5,710 points
137 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.