ec2-get-password
Syntax
ec2-get-password
instanceId
-k windows-keypair
Description
Retrieves and decrypts the administrator password for the instances running Windows.
You must specify the key pair used to launch the instance.
Note | |
---|---|
There is no SOAP or Query version of the |
Options
Option | Description | Required |
---|---|---|
| The ID of the instance. Example: | Yes |
| The file that contains the private key used to launch the instance. Example: | Yes |
Output
Amazon EC2 returns a table that contains the following information:
The Windows administrator password
Amazon EC2 displays errors on stderr
.
Example
This example returns the administrator password for the i-2574e22a
instance.
PROMPT>
ec2-get-password i-2574e22a -k windows-keypair
q96A40B9w