0 votes
1 view
in AWS by (8.9k points)
edited by

I need to know of any way to access a running instance in Amazon EC2.

I DON'T have the original keypair ".pem" file

Terminating/rebooting is not feasible

the closest to my question I have found was this but I hope things have changed since.

is there any way to download that pem file or assign a new keypair?

1 Answer

0 votes
by (18.5k points)

For security reasons, Amazon only lets you download the keypairs only once. So in cases where you lose access to your key pairs, what you can do is, replace the keypair but you can do that only if you stop the instance.

All you have to do is, stop the instance, detach the root volume(only if the root volume is EBS) and attach to other instance for which you have a keypair, modify the authorised_keys file and move this volume back to the original instance.

You can also check out this AWS documentation for connecting to your instance if you lose your private key.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 10, 2019 in AWS by Amyra (8.9k points)
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...