Creating a key pair
Amazon EC2 uses public–key cryptography to encrypt and decrypt login information. Public–key cryptography uses a public key to encrypt data and the recipient uses the private key to decrypt the data. The public and private keys are known as a key pair.
You must create a key pair for each region you use.
From the Amazon EC2 console navigation bar, select the same region as where you
will launch the DataStax Community AMI.
- Create the key pair and save it to your home directory.
Set the permissions of your private key file so that only you can read
$ chmod 400 my-key-pair.pem