AWS Knowledge Center Videos: How do I recover access to my EC2 instances if I lost my SSH key pair?

  • 🎬 Video
  • ℹ️ Description
preview_player
UCd6MoB9NC6uYN2grvUNT-Zg


Walter, an AWS Cloud Support Engineer, shows you how to recover access to your EC2 instances if you have lost your SSH key pair.

💬 Comments
Author

Whenever I create a "recovery" instance and attach the volume I can access it.
If I then mount it back to the original instance I can not access anymore. Even if I copied the keys.
PS. AWS and handling keys is a huge letdown. We are in 2020 and you need to do so many complicated steps for a simple key. Sucks big time and very annoying.

Author — Have An Awesome Day

Author

I'm recovering my keys right now. Hopefully I dont need to reach out to this solution. But I'm a bit relieved now that it is possible, as I almost felt that I have been locked out of my own house!!!! thanks for such an informative session!!!!

Author — Vibhanshu Biswas

Author

Thank you! Steps were easy to follow and everything worked well

Author — Joonas

Author

Worked in my EC2 coming from Lightsail. Thanks so much!

Author — Rafael M

Author

Thanks. This video made it very simple and easy to recover.

Author — SamuelDeUlloa

Author

Great tutorial! It worked like a charm !!!!

Author — Rafael Galindo

Author

Thank you for sharing this video with us, very helpful.

Author — PrimephotoStudio

Author

Worked a treat to recover my t2.micro, nice work!

Author — BoingBall

Author

Thanks so much for this, a bit convoluted but the this video saved my ass today.

Author — Mr Andrews

Author

so basically create a new EC2 instance with the new SSH key? haha

Author — Raymond

Author

Can't you just create an image of your original instance, spin up a new instance from this image, and then download the original keypair again?

Author — Harper Miller

Author

Can you please tell me difference between EBS-backed instance and store-backed instance.?

Author — Nandhu Reddy

Author

I did everything as described but when i try to ssh with my new pem key it just hangs.

Author — Sonny Brown

Author

It is very difficult to see the proper commands when they are at the very bottom of the screen. If the video is paused the commands are all covered.

Author — Jacob Bobo

Author

Not easy but well described in detail.

Author — Philip Miller

Author

My site is online but when I connect to my EC2 I can't see my files even the apache server I installed is not appearing.

Author — Carlos Eduardo

Author

For anyone stuck on the cp command seeing "Permission denied", use $ sudo su <- this will put you into super user mode and tell that permission denied block to stfu.

Author — Sebastien Ringrose

Author

I don't see the directory structure in "/mnt/tempvol" after mounting the volume as shown in the video. I don't see any bin boot, home directories in it after trying "ls -lah /mnt/tmpvol"
Any help ? thanks

Author — An Jest

Author

Hello. I was changing the user permission into one of the folder in my home directory I run into a problem which tells me no permit then I was blocked when I tried to reconnect it tells me "Unable to open connection to http Host does not exist" But into aws console the instance is runing if I try to access my project through browser with my public IP it tells me "unable to connect to this sites" I tried also to connect to my phpmyadmin also it tells me unable to connect to this site. Please help me

Author — Godwin Mwakilembe

Author

I am using bitnami, is it we loose our data if you do this process?

Author — Dost2Web