Generate and Load SSH Keys into SourceTree with PuTTY
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The goal of this article is to guide users to generate and load SSH keys into SourceTree using PuTTY.
Solution
Steps:
1. To generate an SSH Key, select Tools > Create or Import SSH Keys. This window should pop up:

2. Click Generate, and move the mouse randomly until a key is generated:

3. A public key and a private key should appear. Save them both by clicking Save public key (save as .pub filetype), and Save private key (save as .ppk filetype):

4. This is how the .pub and the .ppk files should appear in your .ssh folder, along side with some other files:

SourceTree might prompt you to load the private key. Simply load the .ppk file.
5. Add your public key in your remote server (eg. Bitbucket).

Now, you should finally be able to use SSH as a method for git operations between local and remote.
Was this helpful?