ec2-describe-keypairs
ec2-describe-keypairs [KEY ...]
Describes the current state of each KEY specified on the command line. If no KEYs are explicitly listed then all KEYs owned by the current user are included in the output.
A table containing the following information is returned:
-
A output type identifier ("KEYPAIR")
-
Keypair identifier
-
Private key fingerprint
Errors are displayed on stderr.
$
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