You won't be able to directly use your
PuTTY's key in
OpenSSH because the keys are of different format.
You'll need to first convert
PuTTY's key to
OpenSSH's key format to be able to use the key.
You can convert
PuTTY Private Key (
ppk) file to
OpenSSH private key using
PuTTY Key Generator (
Steps to convert PuTTY Private Key to OpenSSH private key using PuTTYgen:
) from the official website and launch the program.
Click on the
's main interface.
's private key file which normally ends with
extension and click on the
Enter the key's passphrase if prompted and then click
Details of the imported key will be displayed on the main interface and edit if necessary.
Conversions → Export OpenSSH key
from the menu.
There's an old and new types of
SSH key file format and will be automatically be determined based on the key's type except if you choose
Export OpenSSH key (force new file format).
Select the location and file name for your
private key and click on the save button.
Discuss the article:
Comment anonymously. Login not required.