Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SourceTree: Keeps asking for a password to bitbucket.org

Tags:

sourcetree

Can't connect to bitbucket.org from SourceTree. Keeps asking for password. Worked fine yesterday with the same project. Works from git command line

like image 444
Jakob Majkilde Avatar asked Dec 01 '15 10:12

Jakob Majkilde


People also ask

How do I fix authentication error in SourceTree?

Ensure you are using an app password and that it is also correct (ensure there is no copy and paste error when copying the app password over to Sourcetree for Windows). Ensure Preferred Protocol is set to HTTPS. Hit Refresh Password. Make sure the page shows Authentication OK with the green checkmark, then hit OK.

How do I authenticate in SourceTree?

First add a personal access token then add it in your credentials Second add a remote by clicking the gear settings then add a remote Add the remote of your repository then link it with your account that has logged personal access token. lastly fetch to that remote origin.


2 Answers

It's an issue with the newest version 1.6.24 downgrade to 1.6.23 to fix this

here is a link: http://downloads.atlassian.com/software/sourcetree/windows/SourceTreeSetup_1.6.23.exe

link to thread detailing issues: https://answers.atlassian.com/questions/164023/password-not-working-on-sourcetree

like image 194
Serge Bekenkamp Avatar answered Oct 05 '22 04:10

Serge Bekenkamp


I had a similar thing after an update; I tried re-adding my bitbucket credentials, changing the protocols, etc. with no luck, until...

  1. I opened my keychain and searched for bitbucket under the Passwords category.

  2. I found that I had multiple Access Keys for my user, so I closed my repository, deleted all the keys of "application password" Kind, opened the SourceTree preferences > Accounts > removed my account and re-added it (login as usual - I used Basic with HTTPS).

  3. Keychain asks for permission to save the password, which I said yes and now I only see one key of the kind "application password".

I opened my repository from the repo browser and hey presto, no more password popups!

This bugged me for a whole week! If this helped you, you can do a little dance with me now :)

like image 21
AEQ Avatar answered Oct 05 '22 05:10

AEQ