Search code examples
amazon-ec2sshputtyprivate-keyaws-secrets-manager

EC2 instance on my machine. I have lost key pair. But in Aws secret manager there is secret value of .ppk file. How i use that to login to EC2


I lost key pair of EC2 instance linux centos. I have tried .ppk file content copy and paste content from secret manager to notepad and save as .ppk file. While loading to puttygen its showing file format error message.

Please suggest how to login ec2 linux without keypair.


Solution

  • Can you try the following methods provided from AWS: https://aws.amazon.com/premiumsupport/knowledge-center/user-data-replace-key-pair-ec2/

    Feel free to let me know if this doesn't work for you.