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

Still need help?

The Atlassian Community is here for you.

Ask the community


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:

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

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


There are two workarounds: 


Option 1

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

And then change it back to System Git.


Option 2

Run the command below in your command prompt.

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

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


You may follow the steps below:

  1. Press the _Start_ button
  2. Search and execute the _Command Prompt_
  3. Run the command:

    "C:\Program Files (x86)\Atlassian\SourceTree\tools\putty\plink.exe"
  4. Enter y to accept the server key

This should resolve the issue.

Last modified on Jun 21, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.