I lost the pem file and deleted the key-pair under which an instance in currently running. I want to still use that server though. I created a new key pair but I don't know how to assign it to that instance.

link|improve this question

60% accept rate
feedback

1 Answer

Unless you have another way to log into the instance, you're not going to be able to access it. Amazon does not have your private key and cannot log in to your instance.

If you still need your data, disconnect the EBS-volume and attach it to a new EC2-instance.

link|improve this answer
There's no way at all to assign a new key pair then? – Jorge Guzman May 25 '11 at 15:55
Nope, AWS can't acces the instance after creation. – Bart De Vos May 25 '11 at 17:23
feedback

Your Answer

 
or
required, but never shown

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