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

Hi!

Here is the error I got when trying to push/pull/... from my source tree to my stash server:

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 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
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 is nothing I can do to accept the key. There is a lot of topic dealing of the subject but none of the following solution solve my problem:

-https://confluence.atlassian.com/sourcetreekb/trust-a-server-s-host-key-when-no-button-is-available-to-trust-it-788731545.html: Switching from embedded or system git don't solve the problem. However, using embedded ar system git, without sourcetree works

- Using "plink -agent stash.local" don't ask me to valid the key.

Any idea of what could I do? is ther a solution to manually add the fingerprint in my registry? At least the problem will be solved...

1 answer

This bug report is tracking the issue where the solution in that KB article doesn't work. One of the comments also suggests a workaound: download putty and use it to attempt a connection.

https://jira.atlassian.com/browse/SRCTREEWIN-5014

Suggest an answer

Log in or Join to answer
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 ...

234 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot