ec2-describe-keypairs
ec2-describe-keypairs [
key_id
...]
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.
Option | Description | Required |
---|---|---|
|
Names of one or more keys. Example: |
No |
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.
This example describes the state of the current keys:
$
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