PuTTYgen - Create a public private key pair

by
Jeremy Canfield |
Updated: March 02 2022
| PuTTYgen articles
Windows
- Download and install PuTTYgen from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html.
- Start puttygen.
- Select the Generate button.
- After the key is created, click on the Save private key button to download the file that contains private key.
- Click on the Save public key button to download the file that contains public key.
Linux
On a Debian distribution (Ubuntu, Mint), apt-get can be used to install the putty-tool package.
apt-get install putty-tools
On a Red Hat distribution (CentOS, Fedora, Red Hat), dnf or yum can be used to install the putty package.
dnf install putty
Create the private key pair.
~]# puttygen -t rsa -b 2048 -o example.ppk
Create the public certificate.
~]# puttygen -L example.ppk > example.pub
Did you find this article helpful?
If so, consider buying me a coffee over at