Key Pair

 


What is AWS Key Pair, and How to create it?


The principle of AWS Key Pair works on public / private key cryptography: anything that is encrypted using a public key can be decrypted using a private key, and anything that is encrypted using a private key can be decrypted using a public key.

How to create a key pair for EC2 servers (both Linux and Windows)?

a. Navigate to the EC2 management console and select Key Pairs.



b. Click on 'Create Key Pair'.



c. Enter the name for the Key pair. For connecting Linux devices, select 'PPK'. This will download a PPK file. You need to use this file while connecting to a Linux EC2 server using putty.exe. Read here on how to connect to Linux Server.


d. For the Windows Server, select 'pem' option. For more information on connecting Windows server, click here.