Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am playing around with Amazon EC2 and have (finally) managed to SSH into the box from my home machine. Now I want to connect from my work machine but neglected to copy the key pair on a USB key.

Is there a way of downloading an existing key pair WITHOUT dropping the instance?

Thanks

share|improve this question
add comment

3 Answers

up vote 13 down vote accepted

As far as I know, private key can only be retrieved at the time you create the keypair (via EC2 web management console or via API commandline).

So you have to save the private key somewhere and be able to retrieve it at work in order to connect to the instance via SSH, since keypairs' public keys are automatically installed on EC2 servers when you launch them.

Hope that helps.

share|improve this answer
    
I suspected this might be the case, thanks for confirming :-) –  Ben Everard Nov 4 '10 at 13:41
add comment

Agree with Fran, only other way to login via SSH would be to enable password authentication on the instance and login via ssh using username/password.

You may be able to do this from the console access within the AWS web interface.

share|improve this answer
    
Cheers, I will have to set up username / password authentication :-) –  Ben Everard Nov 4 '10 at 13:41
add comment

There is a solution provided here that allows you to reconstruct your pem file if you have the putty specific ppk file

share|improve this answer
1  
Welcome to Server Fault! We really do prefer that answers have content, not pointers to content. This ensures that the answer will remain available even if the link goes dead. Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Iain Apr 29 '12 at 20:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.