I have generated a ssh key in the terminal of my Mac. How can I use this private key in Putty on my Windows pc? I don't want to generate a new ssh key for each computer.
Do this by opening the key in PuTTYGen then choosing File –> Load private key. Then pick the key you want to transfer to your Mac. Now convert the key to OpenSSH via the Conversions –> Export OpenSSH Key menu option. Now that the OpenSSH key is saved copy it over to your Mac.
Now, you need log into your server via SSH as you normally would using PuTTY and paste the copied public key in the file ~/. ssh/authorized_keys on your server. Paste the SSH public key into your ~/. ssh/authorized_keys file using the command-line text editor of your choice and save it.
To convert an id_rsa
file to an id_rsa.ppk
, you can use puttygen from putty's web site.
The converted key would be saved as "id_rsa.ppk".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With