How do I redownload or regenerate a private PEM key for an existing AWS instance?
Posted on 2013-06-03
I'm a relative newbie to the world of AWS and EC2 instances.
I have an instance created on AWS. I'm having issues logging into the instance through WinSCP. I get the following error message:
"No supported authentication methods available (server sent: publickey)."
I used the PEM file associated with the instance to create a PPK (private key) through Putty-Gen. I was able to log into the instance using Putty & winSCP on machine A.
I'm on a different machine now and attempting to use the same PEM to generate a private key with which to log into the instance with. This is where I run into the errors. It leads me to believe that there are issues with my PEM file. So, I'm trying to figure out how to get to redownload or regenerate the key for that instance through AWS (I am remote right now).
I see that I can create a key pair, but I don't see how that gets associated with a specific AWS instance.
I looked at the log file and I don't see any glaring errors jumping out at me.
I was able to spin off a new instance using the AMI and log into that correctly. I need to get into my original instance because there are important files living off the home directory that I need to replicate.
How do I go about doing this?