The server's host key is not cached in the registry

Hello everybody,

I'm trying to fetch the commits list from the server via the GUI. After the click on a Fetch button, I get the "Fetching All" progress bar, which seems to work, but not too efficient.

Full output says I'm supposed to add the key fingerprint to cache; to do that, I need to type "y" to console window. But for obvious reasons, I cannot enter "y" into console window, since there is no console. 

Here's the screenshot:


Installed SourceTree version:

Thanks for the help in advance!


1 answer

1 accepted

Hi Richard,

Solution here

The workaround is simple: just get SourceTree to use Embedded Git and get it to trust the host:

And then change it back to System Git.

This should resolve the issue.

Best regards, Damien.

For some reason it doesn't help; I cannot see this window during the "Fetch" procedure. The situation is the same. 

This is a known issue with SourceTree, refering to, here is the solution:


  • Open Command Prompt
  • "C:\Program Files (x86)\Atlassian\SourceTree\tools\putty\plink.exe"


  • Fresh install of Windows 10 Pro 64bit
  • SourceTree
  • Embedded git

I hope it will resolve your issue Richard! smile

You can also just launch SourceTree's Terminal, and run "ssh <hostname>".

You don't need to actually have the ability to connect via SSH - the ssh software will check the key first, so you can accept it before the server decides whether you're allowed to connect.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

797 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you