Search our database

How to convert .pem private key file to .ppk format

Converting your private key using PuTTYgen

Prerequisite:

  1. If you do not have PuTTY installed, download and install PuTTY from here. PuTTYgen is included in the PuTTY installation.
  2. Obtain the private key (the private key is in .pem file format).

 

Step 1: Launch PuTTYgen (for example, from the Start menu, choose All Programs > PuTTY > PuTTYgen).

 

Step 2: Choose Load to the .pem private key file into PuTTYgen.

 

Step 3: Browse the location where you store the .pem private key file.

Note: To select your .pem key file, you need to choose the option to display All Files (*.*).

 

Step 4: Select your .pem key file for the key pair that you specified when you launch your instance, and then choose Open.

 

Step 5: Choose OK to dismiss the confirmation dialog box.

 

Step 6: Under Type of key to generate, choose RSA. You can leave Number of bits in its default value.

Note: If you’re using an older version of PuTTYgen, choose SSH-2 RSA.

 

Step 7: Choose Save private key to save the key in the format that PuTTY can use.

 

Step 8: PuTTYgen displays a warning about saving the key without a passphrase. Choose Yes.

 

Step 9: Specify the same name for the key that you used for the key pair (for example, keypair-cloud), then Save.

 

Your private key is now in the correct format for use with PuTTY. You can now connect to your instance using PuTTY’s SSH client. You can find the tutorial here.