Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-06-03
1
Medium Priority
?
1,328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 33

Accepted Solution

by:
shalomc earned 2000 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

660 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