ec2-add-keypair
SYNOPSIS
ec2-add-keypair KEY
DESCRIPTION
A new 2048 bit RSA key pair is created with the specified name. The public key is stored by
Amazon EC2 and the private key is displayed on the console. The private key is returned as an
unencrypted PEM encoded PKCS#8 private key. If a key with the specified name already exists an error
is returned.
OUTPUT
A table containing the following information is returned:
Output type identifier ("KEYPAIR").
Keypair name.
Private key fingerprint.
Private key. This value is displayed on a new line.
Errors are displayed on stderr.
EXAMPLE
$ ec2-add-keypair 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
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQC2i/Sgs5BGGd4sunpYQfEkcprgzP9M/hnVJTc1j0nZBeIE2JBuLRSNoqkO7Gw8
nBcdNptaLedzqN8t78jGkX1TPWVAKJTfxRSvU/oViGJaRqIBar0Mpc/wC27kyzHezUNS5+mvONb3
4h/j2EZwDLY75Uxrpka0aN6OkvyIP5gYMQIDAQABAoGAOKH65tBOdjEYSHAh/LeYhGI5wnxWyCAd
C49cLXWix32XvUEircu2kKpiIIsgmT0jvqBuWe/b2noNo0a81z3TzzRYyLvn5J8mUlL6a8nsssQ3
xCHkGM+SE7ZzfBS5WUkbh5Exd3ZXKfCJvJW6auOzJ581JB5yUNbqixWzHuQGGAECQQDwq4LQoyb5
OVSpZwSy+GW/p0yRsqRp89ECNQ+hySGBjkSXBcbt75C+5ebo88/V2V4QOGGa0T0tMsMgKTJ8oukh
AkEAwiyoFM0Zwk0Os3rBZ8PyZoNW5e5SBwrEbLRv4JCaNiQme0ighsDr2bL/nGLI7p13g22+9REM
i/WAmsln50H9EQJASMun6tGepT2pFQBbFIM7y4egCmXdg0rDSoagLtB2eQh+SKvvquKOhp9lg8rT
b5yq7f8PztNBTN2Q1baAVeC04QJAGgN5kS/ZH5rLOWhcuNYbh3hZD/zZqG/c2ONjiaZVwqMdNK8K
MoNuFYBRllX1rWITPNxbFOHv2GBPlm0dKnJAwQJBAOgwjgLY3UpXFX9ZvG4RGEYgfui49Ffz10CH
5sSZpsFYn42E6a2NUJeL4hTzfbGTQ8iCIVjOXFH/9XLTDCNQEPM=
-----END RSA PRIVATE KEY-----
SEE ALSO
CreateKeypair
ec2-describe-keypairs
ec2-delete-keypair
Amazon EC2
Developer Guide
29
ec2-describe-keypairs
SYNOPSIS
ec2-describe-keypairs [KEY ...]
DESCRIPTION
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.
OUTPUT
A table containing the following information is returned:
A output type identifier ("KEYPAIR")
Keypair identifier
Private key fingerprint
Errors are displayed on stderr.
EXAMPLE
$ 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
SEE ALSO
DescribeKeypairs
ec2-add-keypair
ec2-delete-keypair
Amazon EC2
Developer Guide
30
Previous Page Next Page