Walter shows you how to
recover access to an EC2 instance
if you lost your SSH key pair

walter_lost_ssh_key_pair

I've lost my SSH private key and am locked out of my Amazon Elastic Compute Cloud (Amazon EC2) Linux instance. How can I recover access?

To recover access to your Linux instance, you must create a new key pair to replace the lost key pair.

For more information, see Connecting to Your Linux Instance If You Lose Your Private Key.

Note: Do not perform this procedure if your instance is a store-backed instance, because this recovery procedure requires a stop and start of your instance, and any data will be lost. For more information, see Determining the Root Device Type of Your Instance.


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2018-05-21