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

Written by BiRU Saturday, 26 July 2025 08:46

Print

Zoom image will be displayed

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.

Zoom image will be displayed
3FF0y3Q4BXof9kaJkkEfYCRRKa9nm7reXJcpr30aA6CeWALXVvgwW517WW4Y

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

Zoom image will be displayed
hvA9FJ4TFYfUXoHUqQ72n4dTWoIAh2yVZGGMJ6x67Rtmclz2eOyMr6U988c8

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

Get bonguides.com’s stories in your inbox

Join Medium for free to get updates from this writer.

3. Go to Conversions | Import key.

Zoom image will be displayed
gyz2cFA50CQF8ADvXCVoBXOkTwtpN88sRLLvKOsBBhMB2nAUYNU8uJ4vxv9b

4. Browse then select the OpenSSH private key.

Zoom image will be displayed
XEE959piPnpYgvBJOVxAz872I0XUgDRtlc5P52E6tHwaWGcTB6Q9doo5ucSo

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

Zoom image will be displayed
EqxseKbp4l0VvbxKeueSdu7MxgKBv6bdOtL0lxxIkJYHELbvweEy7Aposh4M

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

Zoom image will be displayed
uTI7XQeqaBbhxTGKKTrXEvlNyN5S5ilXi5lt2DKGKTiyX5DFnkephPmuCkqv

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

Zoom image will be displayed
hhaLkiC2SOKtGCfGbl2vdHfZ2LwcoilQz9LeLKGRvHITx5afFnF5uxBLM3aJ

The connection should be established without any issue.

Zoom image will be displayed
EuzxD1ZyChD3VKeo99FhGsiYqD38CRnYwGGI8AHrbKgG59bKJ97ggfTrYKyk

Not a reader? Watch this related video tutorial:

https://youtu.be/_mYXSul90dw