Example Of Create Key Pair With AWS CLI Option
The following example illustrates of creating a key pair with above specified options, here we are providing the key pair name as MyEC2KeyPair and running it without actual execution with providing the format of the key as PEM which stands for (Privacy Enhance Mail).
create-key-pair --key-name MyEC2KeyPair --no-dry-run -type RSA --key-format PEM
How To A Create A Key Pairs In AWS-EC2 ? |Complete Tutorial
In Amazon Web Services, an EC2 key pair consists of a public key and a private key that is used to securely communicate with EC2 instances. The public key is stored on the EC2 instance and is used to encrypt messages that can only be decrypted by the corresponding private key, which is kept by the user who generated the key pair. The private key is used to decrypt messages that have been encrypted with the public key.