A key pair, consisting of a public key and a private key, is a set of security credentials that you use to prove your identity when connecting to an Amazon EC2 instance. Amazon EC2 stores the public key on your instance, and we store our private key.
We store private keys (.PEM format) in a safe location to further RDP into windows instances. If the key pair is lost there is no way to recover it. However, there can still be a way to connect to instances where you’ve lost your private key.
In this blog, we will discuss how to connect to EC2 instances if the key pair is lost. The following steps will guide you through how to retake access to the windows EC2 instance.
Step 1: Create AMI Image of EC2 Instance-
A. Select your instance. For Actions, choose Image and templates, Create an Image.
B. For Image Name, enter a Name & For Image Descriptions, enter a Description & then choose to Create Image.
C. Choose AMIs from the left navigation pane. When the Status is available, continue to the next step.
No comments:
Post a Comment