The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Failing to upgrade keys

Amir Colnect
Contributor
June 21, 2023

Trying to follow instructions on https://bitbucket.org/blog/ssh-host-key-changes without success. Running SourceTree 3.4.13 on Windows11 and instructions were obviously not written for Windows.

 


C:\Windows\System32>ssh-keygen -R bitbucket.org && curl https://bitbucket.org/site/ssh >> %USERPROFILE%/.ssh/known_hosts
# Host bitbucket.org found: line 1
C:\Users\NVnvW/.ssh/known_hosts updated.
Original contents retained as C:\Users\NVnvW/.ssh/known_hosts.old
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 836 100 836 0 0 810 0 0:00:01 0:00:01 --:--:-- 812


C:\Windows\System32>ssh git@bitbucket.org host_key_info
git@bitbucket.org: Permission denied (publickey).

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Amir Colnect
Contributor
August 26, 2026

This was asked over 3 years ago. Didn't seem like the community support helped here but I had to find the solution by myself. I guess it works as I'm still using BitBucket

0 votes
Martin Runge
Community Champion
August 25, 2026

Hi @Amir Colnect

Is this still relevant for you?

I would read the "Permission denied (publickey)" as a sign that the host key update actually worked, since you got no host key warning; what remains is simply that your own SSH key is not being offered to Bitbucket. On Windows, Sourcetree also keeps its own host key cache when it runs in PuTTY mode, so I would check Tools > Options > General > SSH Client and, if it says PuTTY/Plink, load your key in Pageant and let Sourcetree accept the new Bitbucket host key once instead of editing the OpenSSH known_hosts file.

Cheers,
Martin

Amir Colnect
Contributor
August 26, 2026

Thanks for a reply. With 3+ years after asking, it's unlikely to be relevant

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events