I just provisioned a new EC2 Linux AMI instance and in the process it allowed me to generate a key-pair (with no passphrase) and I have downloaded the pem.

If I have to login into the EC2 instance, I was using ssh -i <my.pem> my-ec2-instance, but its asking for a passphrase which I never created in the first place. How do I access the EC2 instance now?

link|improve this question

75% accept rate
Appreciate any inputs on this – priya Oct 29 '11 at 5:19
1  
You shouldn't need a passphrase if you didn't create one. Possible problems: permissions (should be 600), mal-formed key (did you copy and paste or pipe the output directly to file), or you may have used the command line tools and inadvertently entered a keypair (e.g. a space - not sure if line breaks count depending on Windows vs. *nix). Take a look at this question for some other ideas. If you create a new keypair, only instances launched after the keypair is created will be accessible with it. – cyberx86 Nov 1 '11 at 17:23
feedback

migrated from stackoverflow.com Oct 23 '11 at 13:47

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.