Convert SSH PEM file to putty PPK file format and vice versa on Linux/Unix

PuTTY doesn’t natively support the private key format (.pem) generated by ssh-keygen or openssh program. You must convert your private key into a .ppk file before you can connect to your server using PuTTY from a Windows system. You can use the PuTTYgen tool for this conversion. This tool, available for both Windows and Unix operating system, can convert keys.

Topic

  • How to convert SSH PEM file to putty PPK?
  • How to convert Putty PPK file to SSH PEM file?
  • How to install putty on Linux system?


Solution


Install putty on the Linux system. Follow the steps below for putty installation.

Fedora:

$ sudo dnf --refresh install putty

Ubuntu/Debian

$ sudo apt-get install putty-tools

Centos/RHEL
Download putty packages from the following URL and install it manually.


Putty Key Conversion
Convert a PEM file to a .ppk file
$ puttygen pemKey.pem -o ppkKey.ppk -O private

Convert a PPK file to a PEM file
$ puttygen key.ppk -O private-openssh -o key.pem


You May Also Like

avatar

About the Author: TekFik

TekFik is a technical blogging site helps techies and engineers to solve their day to day issues and also allows everyone to share knowledge and feedback. Please feel free to contact us at tekfik.rd@gmail.com if there is anything.

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *