Creating Keypairs for Amazon EC2

Amazon EC2 (Elastic Cloud Computing) is used for IAAS (Infrastructure As A Service) Cloud. It is used using creating Linux & Windows instances in the cloud. After creating instances, we need to access them remotely. During creation of instances, we need to specify the keypair that we are going to use for accessing instances. Step by step procedure for creating keypair in Amazon AWS Cloud.

Step 1:  login at “” using your account


Step 2: Choose “EC2” from compute services


Step 3: All the resources which has been created or deployed will be shown. As can be seen, no keypair has been created. Click on “Key Pairs” for creating new keypair.


Step 4: Press “Create Key Pair” button.


Step 5: Give some name to keypair. In our case, we have given the name “vipin”.


Step 6: It will ask to save your key. It is saving the key as “vipin.pem”. We saved the key on the desktop.


Step 7: This dashboard screenshot shows the key and its fingerprint.


Step 8: We also created 1 folder “keys” in our “F:” drive and also download 2 utilities called “putty” and “puttygen”. “putty” is used for remotely accessing linux instance. But the problem with this utility is that it can not use the key in “pem” format. We need to convert the key from “pem” format to “ppk” format using “puttygen”.


Step 9: Open “puttygen” utility. It will show some warning message. Just click on “Run“.


Step 10: It has started the Putty Key generator utility.


Step 11: Click on “File” menu & choose “Load private key”.


Step 12: Select “vipin.pem” & click on “Open” for loading the key.


Step 13: It will show the message that key has been imported successfully.


Step 14: Click on “Save private key” option to save the private key in “ppk” format.


Step 15: Before saving the key in new format, it will ask whether we want to protect the key with passphrase or not. In our case, we want to save the key without protecting it with the passphrase.


Step 16: Save the key with name as “vipin.ppk”.


Step 17: As can be seen, it has converted the key into “ppk” format


Step 18: Open the “putty” utility. It will give some warning. Ignore the warning.


Step 19: It has opened the “putty” utility. We will be using this utility when accessing linux instance.