Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 435 Bytes

File metadata and controls

14 lines (7 loc) · 435 Bytes

To create a key pair

This example creates a key pair named MyKeyPair.

Command:

aws ec2 create-key-pair --key-name MyKeyPair

The output is an ASCII version of the private key and key fingerprint. You need to save the key to a file.

For more information, see Using Key Pairs in the AWS Command Line Interface User Guide.