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.
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.