How to Convert PuTTY Private Keys to OpenSSH Format

Table of Contents

Convert PuTTY Private Keys to OpenSSH Format

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

How to Convert PuTTY Private Keys to OpenSSH Format

You got this because you’re using a private with PuTTY format (*.ppk) with a OpenSSH client. So, we need to convert the private to OpenSSH format.

1. Download then open the PuTTY Key Generator for the official website:

2. On the PuTTY Key Generator, click on the menu File Load private key.

How to Convert PuTTY Private Keys to OpenSSH Format

3. Select the PuTTY private key (*.ppk) which has to be converted to the OpenSSH format and click on Open.

How to Convert PuTTY Private Keys to OpenSSH Format

4. Now, from the menu click on ConversionsExport OpenSSH key.

How to Convert PuTTY Private Keys to OpenSSH Format

5. Click Yes to save the private key without a key phrase.

How to Convert PuTTY Private Keys to OpenSSH Format

6. Type a desire name and save the file without any file extension. The generated key will be in OpenSSH format to use with any OpenSSH client.

How to Convert PuTTY Private Keys to OpenSSH Format

Finally, trying to SSH to a remote system using the OpenSSH private key.

ssh [email protected] -i D:\PuTTY\opensshkey

As you can see, it works now.

How to Convert PuTTY Private Keys to OpenSSH Format

Leave a Comment

Required fields are marked *