ec2-describe-keypairs
Syntax
ec2-describe-keypairs [
key_id
...]
Description
Describes the current state of each specified key. If no keys are specified, all keys owned by the current user are included in the output.
Options
Option | Description | Required |
---|---|---|
| Names of one or more keys. Example: | No |
Output
Amazon EC2 returns a table that contains the following information:
A output type identifier ("KEYPAIR")
Key pair identifier
Private key fingerprint
Amazon EC2 displays errors on stderr
.
Example
This example describes the state of the current keys.
PROMPT>
ec2-describe-keypairs gsg-keypair
KEYPAIR gsg-keypair 1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f