Sourcetree shows SSH fingerprint in different format

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

  • This knowledge article explains why the SSH key may show in a different format than expected within the Sourcetree application, and provides a solution for this.

Diagnosis

  • Sourcetree shows the following message when attempting to authenticate over SSH, the SSH key's fingerprint is shown in MD5 format by default:

    (Auto-migrated image: description temporarily unavailable)

Cause

  • SSH fingerprints can be parsed in different ways using different algorithms. 

    • The 2 different algorithms covered in this page are MD5 and SHA256 

    • By default, most of the Linux based operating systems with SSH prefer SHA256 format whereas some clients such as Sourcetree prefer MD5 format. 

  • Although the SSH key shown in the screenshot is correct, the fingerprint is in a different format and doesn't match as mentioned in this article because of the algorithm used to parse the SSH key.

  • Sourcetree uses MD5 format by default and hence the fingerprint's format looks different. 

  • The below command fetches the SSH key fingerprint in MD5 format. In the below commands, the file "Bitbucket_Knownhost" contains the RSA type SSH known host key of bitbucket.org.

1 2 % ssh-keygen -l -E md5 -f Bitbucket_Knownhost 3072 MD5:12:19:71:e8:1b:0b:74:e7:06:4a:cd:e3:20:f9:13:28 bitbucket.org (RSA)
  • Whereas, the below command fetches the SSH key fingerprint in SHA256 format

1 2 % ssh-keygen -lf Bitbucket_Knownhost 3072 SHA256:46OSHA1Rmj8E8ERTC6xkNcmGOw9oFxYr0WF6zWW8l1E bitbucket.org (RSA)

Solution

  • Both the formats SHA256 and MD5 are widely used and are recognised by SSH.

  • The difference in formats is due to the git version used by Sourcetree compared to your PC/server. 

    • Sourcetree uses Embedded git by default and the configuration of this git version could be different from your local git version. 

    • You can configure Sourcetree to use your local git settings by following the steps contained within this article which covers the topic. 

As per a past announcement, Atlassian only supports SourceTree-related issues through our active Sourcetree Community - you will need to reach out there for further assistance with any Sourcetree-related issues.

Updated on February 28, 2025

Still need help?

The Atlassian Community is here for you.