OpenSSH and PuTTY keys are of different formats and will have to be converted to each other's format if you want to use the same key between the 2 programs.

OpenSSH private key can be converted to PuTTY's ppk (PuTTY Private Key) format using PuTTYgen.

Steps to convert OpenSSH private key to PuTTY Private Key format:

  1. Download PuTTY Key Generator (puttygen.exe) from the official website and launch the program.
    https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
  2. Click on the Load button.
  3. Set the Files of type to All Files (*.*), select your SSH's private key file and click on the Open button.
  4. Enter your key's passphrase if prompted and click on the OK button.
  5. A prompt will pop up once conversion is successful and click the OK button.
  6. Edit any key parameters if necessary and click on Save private key.
  7. Select the location and filename to save the generated key to and click on the Save button.
Share this guide!
Discuss the article:

Comment anonymously. Login not required.

Share!