Different Ways to change .Pem file of AWS instance Part : - 1 (Using Session manager)
Pem file is a private key file that you download when you first time generate key from key pair section or when you create an instance. It is use to securely connect your instance using terminal. So AWS stores public key and they let us download .Pem one time only. In that case, Someone may loose .Pem file by mistake and you are not able to ssh in your instance without .Pem file. So the question is How to change your .Pem file of your instance in this scenario. There are 3 ways that i know, how to change .Pem file. Using Session Manager Using AWS-Support Reset Access automation document in System Manager Using new instance I will guide you through the step wise. In this blog i will explain how to change .Pem file using Session Manager. This use full when your instance is running or it is instance store backed, so in that case this is very useful method. If you haven't attach the System Manager role to AWS instance then this can be done using how to co...