How to create a public / private key pair using puttygen

Home > Search > How-to


  1. Download PuTTYgen from
  2. Start puttygen.
  3. Select the Generate button.
  4. After the key is created, click on the Save private key button to download the file that contains private key. 
  5. Click on the Save public key button to download the file that contains public key. 


Install puttygen.

~]# apt-get install putty-tools


Create the private key pair.

~]# puttygen -t rsa -b 2048 -o example.ppk


Create the public certificate.

~]# puttygen -L example.ppk >


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter in the box below so that we can be sure you are a human.