PuTTY does not support OpenSSH's OpenSSH Private Key Format. You need to convert your OpenSSH's private key to a ppk or PuTTY Private Key to use the same key with PuTTY.

PuTTYGen or PuTTY Key Generator is a tool to manage private and public SSH key pairs on Windows. You can use it to convert OpenSSH's private key to the ppk format.

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

  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 the 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 and click on the Save button.
Discuss the article:

Comment anonymously. Login not required.

Share!