Sourcetree keeps asking password after installing version 2.6.3

it's a nightmare, it had happened to me before.

it just keeps asking for password if I try to push. I tried both SSH and HTTPS.

I checked that my KEYs are generated and are added to bitbucket. (they already were). it just doesn't work... I don't know what to do.

also when the popup appears, the checkbox "store password in keychain" is checked but does nothing.

1 answer

1 accepted

If using ssh, can you please check if the keys are added to the agent?

You can run below command to check for keys in agent,

ssh-add -l


If you don't find your keys listed, please add them using below command,

ssh-add <path_to_key>

thanks, I have just tried that, but I get error:

Error loading key "/Users/myusername/.ssh/": invalid format

any suggestions?

(by the way, the result of ssh-add -l was, indeed "The agent has no identities", so I guess the problem is identified now)

You should try this,

ssh-add ~/.ssh/myusername-Bitbucket

oh brilliant!

that worked!! thanks a lot...


I still have a problem, I'm afraid...

when I add the identity, it works. But the next day when I open my computer again, it is missing again. So I have to do this every day... isn't there a way to make this "permanent"?

and also, SourceTree keeps poping up the "password required" message, which is very annoying. I close it and it just appears again...


This is what Apple suggest to make it permanent -

This hasn't worked for me personally. But, I would recommend you try this to see if it works for you. 


Sourcetree Developer

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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 ...

647 views 0 4
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