Solved

How do I redownload or regenerate a private PEM key for an existing AWS instance?

Posted on 2013-06-03
1
1,235 Views
Last Modified: 2014-11-12
Hi:

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?

Thanks,
JohnB
0
Comment
Question by:jxbma
1 Comment
 
LVL 33

Accepted Solution

by:
shalomc earned 500 total points
ID: 39218902
If you only need the data, then try the following procedure, which works unless you use encrypted files systems.

Create a snapshot of your instance.
Create a new temporary volume out of the snapshot
Start a new temporary instance.
Attach the new volume to the new instance.
Retrieve your files.
At this point you can tear everything down:  disconnect the volume, delete it, delete the snapshot and drop the temporary instance.
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Where can I find... 1 43
Cloud Migration Questions 8 88
AWS Design\Cisco Meraki 4 34
Javascript: Setting a dropdown based on another dropdown selection 5 19
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question