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 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?

share|improve this question

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

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

Appreciate any inputs on this –  priya Oct 29 '11 at 5:19
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

Your Answer


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

Browse other questions tagged or ask your own question.