Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to cache the server's host key

Scott Rappold
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 24, 2024

I have set up a new work machine and I am having an issue with Sourcetree.  

I have been able to log in and see my repos.  When I try to Pull or Fetch I get the following:

>>

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch -v --no-tags origin
The server's host key is not cached. You have no guarantee
that the server is the computer you think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 SHA256:<key>
If you trust this host, enter "y" to add the key to


Completed with errors, see above.
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.
Store key in cache? (y/n, Return cancels connection, i for more info) fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists

>>

.

I have tried to follow the steps in issues answered elsewhere but none seem to work.  If I try to run "plink bitbucket.org" I then press Y to cache and I get an error trying to enter a log in: "FATAL ERROR: No supported authentication methods available (server sent: publickey)"

  I know I am missing something somewhere, but I can not seem to identify what that may be.  Any suggestions would be greatly appreciated.  Thank you.

1 answer

0 votes
gilgen-zt April 24, 2024

For me it helped to open an SSH-connection to bitbucket.org with PuTTY and then to accept to trust the connection.

image.png

image.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events