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:

(Auto-migrated image: description temporarily unavailable)

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

(Auto-migrated image: description temporarily unavailable)

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):

(Auto-migrated image: description temporarily unavailable)

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

(Auto-migrated image: description temporarily unavailable)

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).

(Auto-migrated image: description temporarily unavailable)

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

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.