Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure SSH keys on Windows for SourceTree, terminal and IDEs such as IntelliJ and Eclipse?

Tags:

How does one configure SSH keys to work with SourceTree, the terminal and IDEs like IntelliJ and Eclipse on Windows?

This was driving me nuts for a while and I eventually came up with the following after a great deal of research and trial and error. Thought I'd share here for future reference for myself and others.

like image 823
the_new_mr Avatar asked Jul 11 '19 00:07

the_new_mr


People also ask

How do I add a SSH key to Sourcetree?

From Sourcetree, open the PuTTY Key Generator dialog by going to Tools > Create or Import SSH Keys. Click Load, navigate to your SSH folder, and click the private key. Make sure you're looking at All files if you don't see your private key. Enter your passphrase for the SSH key and click OK.

How do I set up SSH keys?

Open a terminal and use the ssh-keygen command with the -C flag to create a new SSH key pair. Replace the following: KEY_FILENAME : the name for your SSH key file. For example, a filename of my-ssh-key generates a private key file named my-ssh-key and a public key file named my-ssh-key.


1 Answers

(From the NavBar) Tools->options->general->SSH Client Configuration

Add the link to your private key on your drive.

Caution: I didn't use puTTY and instead used OpenSSH, so I had to change the SSH Client:

enter image description here

like image 182
Sharky Avatar answered Oct 02 '22 00:10

Sharky