Problem after installing Sourcetree

I've just upgraded Sourcetree from to and realized a repository which is not on Bitbucket nor Github, but an old Linux server using SSH is not accessible because all credentials now apparently need to be related to Bitbucket, Bitbucket Server or Github.

I can't see in the new UI an option to add credentials for a server not related to that.

Is there any way to configure that somewhere else?

Thank you in advance.

2 answers

1 accepted

1 vote
Answer accepted

I finally found a solution to this. If you remove the passwd file, Sourcetree will recreate the file and allow you to reauthenticate all of your repos when you try to connect. 

You saved my day @Ryan Smith, thank you very much! This worked like a charm.

0 votes

Hi Eugenio! We only provide account profiles for Bitbucket Cloud, Bitbucket Server and Github by default, but you can still connect to different services or your own server. To do that, use the Clone from URL feature to check out repositories from SourceTree using SSH.

For more information, you can read How do I use SSH with SourceTree.

Hope this helps!


Thank you, Ana, for your fast response.

I actually had a user already configured with repository credentials before updating to and the repository is still configured as it was. What happened was that it started to complain about invalid credentials when I fetched new changes from the repo using the UI, and the only way to get them after the update was using the command line and provide the credentials manually.

I don't actually have a UI to update those credentials if they change either, I can only see those related to Bitbucket Cloud, Bitbucket Server, and Github.

I'm adding below the log I'm getting when I push the fetch button

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch --prune origin
Access denied
Access denied
Access denied
Access denied
Access denied
FATAL ERROR: Server sent disconnect message
type 2 (protocol error):
"Too many authentication failures for eugenio.miro"



fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


Completed with errors, see above.


Hi Eugenio, what do you mean by: 

I don't actually have a UI to update those credentials if they change either, I can only see those related to Bitbucket Cloud, Bitbucket Server, and Github.

If you use Windows, you'll find how to do it at Clone a repository into SourceTreeIf you use Mac, you can find that option by clicking in New:

Screen Shot 2017-07-25 at 11.26.05.png

Is that what you were referring to?



I'm also running into the same error as Eugenio when upgrading to The credentials for all of my repos have been reset and there doesn't seem to be a way to enter new authentication info through the GUI.

Hi @Ryan Smith, you can add a repository by URL by clicking on New > Clone from URL as you can see in the screenshot in my previous comment. Note that you can not enter it through the Accounts menu, that's only for Bitbucket Server, Cloud and Github.

Can you find that option? If this is missing in your application, can you send me a screenshot?

Best regards,


I tried your suggestion and unfortunately, it didn't work as expected, this is the output I get in the Details window, which is the same I get when using the already cloned repository.


Moreover, if this worked after removing and cloning the repo again, that wouldn't be the best solution either because I have several local branches I'd like to keep and also several stashes that are useful as they are, I'd prefer a solution keeping the current repository and changing the credentials. I started to check other options like GitKracken if this doesn't work, even if I don't like it so much, but this can be a deal breaker for me... and my team... 

I hope we can work around this problem soon, I don't want to be outdated on my tools and this is an important one for me and my team, I already told them to hold on updating to this version until we have a solution to this.

Thank you anyway for your help.


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,225 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