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

SourceTree can not login with Bitbucket

eric franchomme March 19, 2019

Out oif the blue, SourceTree keeps asking about my credentials for Bitbucket repo, even though they were already set. It does not seem to remember the password in Keychain?


So, I removed all the accounts from SourceTree, and added them back, maiking sure to create the SSH key from SourceTree (and copying in Bitbucket Settings).

However, this is still not enough: existing repo in SourceTree can not still connect properly. For one repo, I was able to remove the clone in SourceTree, and re-cloned: this worked.

but for other repo, I have work in progress that I do no want to lose.

Very painful.

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 1, 2019

Hi Eric, welcome to the Community!

Have you changed your machines recently? If you're using the same machine, it could be that the SSH key agent "forgot" the key for some reason, in that case you'll need to re-add it. To find out, you can run the following command in the terminal and see if it returns anything:

ssh-add -l

If the key is not there, you can re-add it doing:

ssh-add <path_to_key>

Let us know if that worked!

Kind regards,


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events