If a public/private key pair is generated for Mac or Linux (which uses an OpenSSH-style private key), it can easily be converted for use on Windows (which uses a PPK-style private key) using PuTTYgen. Or vice versa.
Steps
To convert a private Mac/Linux (OpenSSH-style) key to a Windows (PPK-style) key:- Download PuTTYgen
- Launch PuTTYgen. Visit Conversions > Import Key.
- Browse to and open the OpenSSH-style key (id_rsa)
- Click the Save private key button.
- When prompted "Are you sure you want to save this key without a passphrase to protect it?" choose Yes.
- Save the file. Recommended filename: id_rsa.ppk
Steps
To convert a private Windows (PPK-style) key to a Mac/Linux (OpenSSH-style) key:- Download PuTTYgen
- Launch PuTTYgen. Visit File > Load private key.
- Browse to and open the PPK-style private key (id_rsa.ppk)
- Visit Conversion > Export OpenSSH key
- When prompted "Are you sure you want to save this key without a passphrase to protect it?" choose Yes.
- Save the file. Recommended filename: id_rsa