DEV Community

Mrityunjaya Prajapati
Mrityunjaya Prajapati

Posted on

How to convert a PEM file to PPK format

If you are using AWS EC2 instances with Linux OS, then you will always generate the access keys in a PEM (Privacy Enhanced Mail) format.

If you are using PuTTY to connect EC2 instances then it asks for PPK format, in this case you have convert your PEM file into PPK format.

You have to follow following steps to convert PEM format to PPK format using PuTTYGen:

  1. Download PuTTYGen from
  2. Open PuTTYGen and click the Load button
  3. Set the filetype to . so the AWS PEM file is visible
  4. Select your PEM file and PuTTYGen will import it
  5. Click Save Private Key and PuTTYGen will convert the PEM to a PPK file

Generate PPK file

How to Connect EC2 from PuTTY

  1. You have to enter your EC2 Hostname or IP Address and in host Textbox
  2. Go To SSH sidebar menu and upload your PPK file
  3. It will open Terminal Window and authenticate your certificate and Machine
  4. Once you Authentication done then you can enter your username: ubuntu is default username for EC2 instance

Hostname / IP in Putty

Upload PPK file


PEM to PPK conversion is one of the most important activity if you are using EC2 instance.

If you liked the solution, please hit the Clap button or comment if you have any suggestion or feedback.

Top comments (0)