Saturday, April 1, 2017

Using putty to convert pem to ppk format

In the previous blog, we looked into creating a Key Pair. During this process, we were asked to download a pem file. This file will be used to login to a Linux or a Windows instance from our laptop or desktop to the cloud. The process is a bit different depending upon, what our laptop or desktop OS is and also the OS of the instance in the cloud.


Option 1) Connecting from Linux instance to a Linux instance - The pem file can be used as-is.

Option 2) Connecting from a Windows instance to a Windows instance -  The pem file can be used as-is.

Option 3) Connecting from a Windows instance to a Linux instance - The pem file has to converted into a ppk file.

Option 1) and 2) don't require any conversion, while the Option 3) requires the same. In this blog we will look into converting a pem file into a ppk file.

1) The first step is download puttygen.exe from here onto a Windows machine. There is no need to install it, simply save it in a location where it can be located easily.

2) Launch the puttygen.exe. The below screen should appear.


3) Click on `Load`. Point to the pem file which has been downloaded during the creation of the Key Pair. The file would be hidden. Make sure `All files (*.*)` is selected. Click on `Open`.


4) There will be a notice, simply accept the same.


5) Click on `Save private key`. There will be a warning, accept the same.


6) Navigate to the location where the file has to be saved. Make sure the complete file name is specified as shown below and click on Save.


The above sequence of steps will convert the pem file into a ppk file which will be used to login to a Linux instance in the cloud from a Windows machine. In the next blog, we will be creating a Security Group.

No comments:

Post a Comment