Unable to Use Key File OpenSSH SSH-2 Private Key (Old PEM Format)

Table of Contents

Unable to Use Key File OpenSSH SSH-2 Private Key

In some cases, you get the following error when trying to connect to a Linux system using PuTTY with private key authentication.

Unable to Use Key File OpenSSH SSH-2 Private Key (Old PEM Format)

You got this because you use a private key with OpenSSH format. To fix it, you need to convert the OpenSSH private key to PuTTY format.

1. Visit the PuTTY official website then download the PuTTYGen.

Download:https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Unable to Use Key File OpenSSH SSH-2 Private Key (Old PEM Format)

2. Open the downloaded file to run the PuTTY Key Generator.

3. Go to Conversions | Import key.

Unable to Use Key File OpenSSH SSH-2 Private Key (Old PEM Format)

4. Browse then select the OpenSSH private key.

Unable to Use Key File OpenSSH SSH-2 Private Key (Old PEM Format)

5. The private key is converted to PuTTY format. Click on the Save private key button to save it to a file.

Unable to Use Key File OpenSSH SSH-2 Private Key (Old PEM Format)

6. Save the file to a safe location. As you can see, the PuTTY private key format is .ppk.

Unable to Use Key File OpenSSH SSH-2 Private Key (Old PEM Format)

Finally, open PuTTY, change the private key authentication from OpenSSH format to the PuTTY format then trying to connect to a remote Linux system.

Unable to Use Key File OpenSSH SSH-2 Private Key (Old PEM Format)

The connection should be established without any issue.

Unable to Use Key File OpenSSH SSH-2 Private Key (Old PEM Format)

Leave a Comment

Required fields are marked *