Thursday, July 2, 2009

Elasticfox showing error “Invalid EC2 private key” while trying to get “Administrator Password”

If you are using Amazon EC2 and Elasticfox then getting the error “Invalid EC2 private key” is very common with Windows instance while trying to use command “Get Administrator Password”.


invalid_key

To solve this problem you need to change the "EC2 Private Key Template" setting of Elasticfox. Click on "Tools" in elasticfox window. It will bring the settings window.


ec2_settings

You will find that the settings for "EC2 Private Key Template" is set with the file extension ".ppk". For example "C:\EC2\AWS_KEY${keyname}.ppk".
Now change this value with the path where your private key file is saved which was used to create the instance and change the extension to .pem. So after changing the setting it will look something like "C:\EC2\AWS_KEY\${keyname}.pem"


ec2_settings_correct
Hope this tips will solve the problem with getting administrator password using Elasticfox.

1 comment:

Anonymous said...

Thanks! Worked perfectly.