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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree can not login with Bitbucket

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 Apr 01, 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
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,719 views 4 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you