Trust A Server's Host Key when No Button is Available to Trust It

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

Problem

Users may not be able to trust a server's host key that is not cached in the registry via SourceTree's output when the user is using System Git. Example:

1 2 3 4 5 6 7 8 9 10 11 12 git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's rsa2 key fingerprint is: ssh-rsa 2048 aa:d1:aa:00:bb:c0:b0:a0:d0:e0:f0:a0:a1:00:11:ee If you trust this host, enter "y" to add the key to PuTTY's cache and carry on connecting. If you want to carry on connecting just once, without adding the key to the cache, enter "n". If you do not trust this host, press Return to abandon the connection.

There's no button provided to click enter yes or no, or any space to type in a "y" or an "n".

Workaround

There are two workarounds:

Option 1

Just get SourceTree to use Embedded Git and get it to trust the host:

(Auto-migrated image: description temporarily unavailable)

And then change it back to System Git.

Option 2

Run the command below in your command prompt.

1 "C:\Program Files (x86)\Atlassian\SourceTree\tools\putty\plink.exe" bitbucket.org

If you've changed the SourceTree installation directory, you would need to modify the command.

"C:\<Path>\Atlassian\SourceTree\tools\putty\plink.exe" bitbucket.org

You may follow the steps below:

  1. Press the _Start_ button

  2. Search and execute the _Command Prompt_

  3. Run the command:

    1 "C:\Program Files (x86)\Atlassian\SourceTree\tools\putty\plink.exe" bitbucket.org
  4. Enter yto accept the server key

This should resolve the issue.

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.