Sourcetree Windows cannot SSH into Git server with password

For quite a long time now, I've been using a Git repository hosted on a Hostgator server, accessing it through SSH and a password.   I had been able to access this just fine on both my Mac and my Windows computers, but after several months, I updated to the latest versions, and suddenly I no longer can access the repository from Windows.

It fails, telling me it cannot read from the remote repository.   It does NOT prompt me for a password, nor were there any Accounts listed in the Tools/Options/Authentication section.

So I tried to add an account for it -- but the only "Hosting Entry" type which actually allows entering a Host URL was "Bitbucket Server".  Still, I put that in, set my preferred protocol to SSH, and entered the credentials and password... but when it tried to authenticate it claimed that only HTTP or HTTPS were allowed.

So now I'm stumped - did something change to remove password support for SSH in the more recent versions?   If not, how do I get it to prompt?

Also, now, it's showing an entry under the Account for the invalid Bitbucket Server entry -- and the "Delete" button isn't actually removing it.   How do you get rid of that?


1 answer

0 votes


Firstly I'm afraid the Hosted Accounts will only support the specified server types. (I'm impressed it saved the credentials if it wasn't one of those instances).

Secondly we did fix some account deletion issues in v2.3.5.0, if you aren't using that I would suggest updating.

Ultimately the account credentials are stored in the Windows Credential Manager and can be deleted from there.

With respect to your SSH auth error. Sourcetree relies on Git and the Git Credential Manager to handle the actual authentication with remote servers of all types.

If you run git from the Sourcetree terminal, opened using the button in the upper right of a repository tab' and try and do a git pull, I would expect you to be challenged for a username/password  by a simple GUI. Does this happen?

If you run the same git pull twice are you prompted twice?

Can you also let us know what version of git and Git Credential Manager you are using?

> git version

> git credential-manager version


I am using already - that's the version all of this was happening with.  I was able to delete the entries in the Windows Credential Manager, however.

Doing a git pull from Terminal does in fact prompt for a password each and every time you do it.   (Side note - is there any way to change the commit/merge editor choice from vi to something more usable?  Ugh.)

Git is version

Git Credential Manager for windows is version

That GCM is old its up to v1.12.0 now which has much better support for Bitbucket amongst other things.

If you are using system git I would recommend downloading and installing the latest Git, 2.15.0 at the time of writing which will have a much more uptodate GCM. Or if you are using the embedded Git, use the option in Tools/Options/Git tab in Sourcetree to update to the latest embedded version.

In Sourcetree you can set the diff/merge program that Sourcetree will use. See the Tools/Options/Diff tab. Be aware you need to install 1 of the tools manually your self first, Sourcetree does not bundle them.

I personally use KDiff3 and find it vey easy to use.

Okay, I've updated my embedded Git which brings it up to version, and Git Credential Manager up to version 1.12.0.  But it still doesn't fix the lack of a password prompt when trying to access the remote server from Sourcetree.

I can work around this problem for now by using the Terminal to do git push and git pull requests (since the command line always correctly prompts for a password...).

But it's pretty awkward to do it that way -- any further suggestions?

I agree this is crazy, I am running into the same issue. I am sorry but SourceTree has ton of source issues, really need to fix. Starting from Installation all the way to the UI, very frustrating. I am this close too good bye.

Hi this should be fixed in

It includes an updated cop of PuTTY/Pageant. It can be downloaded here:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 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...

1,112 views 4 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