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.
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.
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.
(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:
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