Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use a Mac ssh key in Putty (Windows)?

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.

like image 995
Engo Avatar asked Mar 24 '16 16:03

Engo


People also ask

How do I use PuTTY key on Mac?

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.

Where do I put SSH keys in PuTTY?

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.


1 Answers

To convert an id_rsa file to an id_rsa.ppk, you can use puttygen from putty's web site.

  • Choose File->Load Private Key
  • Enter the private key password if applicable
  • Press the button Save private key.

The converted key would be saved as "id_rsa.ppk".

like image 176
Joachim Isaksson Avatar answered Oct 13 '22 22:10

Joachim Isaksson