SourceTree on Windows is not prompting for password when connecting to git repository.

I have several private repositories on my own server that I connect to from Windows machines with password authentication. Today, I cannot connect to them because SourceTree is not showing the Username/Password dialog anymore. I can connect when using the system git from the command line and when using the git bash that pops up when pressing the "Terminal" button in SourceTree, so I know everything is fine on my git server. I can also connect from OSX machines using SourceTree, but they use SSH authentication instead of password authentication.

I ran Askpass.exe separately and it shows the dialog correctly and returns the password, but it doesn't show when it should in SourceTree.

 

I downgraded SourceTree to 1.6.14 but it doesn't show the password dialog now, either.

 

I also tried setting up an SSH key with SourceTree's Putty, but that didn't work, either.

 

Any ideas?

2 answers

Have same issue on Win 7 & SourceTree 1.8.3. It does not ask for password and fails immediately with "FATAL ERROR: Server unexpectedly closed network connection". Git from command line works and asks for password. Removal of credentials did not help.

The only thing that worked for me was navigating to C:\Users\%USERNAME%\AppData\Local\Atlassian\SourceTree and removing the passwd file.

Thanks! This is the only thing that worked for me....apparently this is a two-year old bug

0 vote
Jeff Thomas Atlassian Team Nov 03, 2015

Hi Andrew,

You may want to try clearing the credentials out of SourceTree if they are cached there. This can be done under Tools > Options > Authentication

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

570 views 1 2
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