It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree Login failed for your Bitbucket account. The remote service said: 'Login error'

MrBalin Mar 22, 2016

I tried to login to Bitbucket from Sourcetree and seem to be getting the same Login Error message:

Login failed for your Bitbucket account.

The remote service said: 'Login error'


How could I go about fixing this?

6 answers

16 votes
Eli Rotenberg Mar 26, 2016

I had this problem.  To fix:

1-go to source tree window, clicked remote

2-little gear icon, clicked "settings"

3-double clicked on Bitbucket server, changed protocol from default HTTPS to SSH


that's all it took to fix

Daniel Cid Sep 19, 2016

Thank you! This fix it!

James McLerran Dec 14, 2016

Thanks much. Worked for me also.

Like Fernando JS likes this
6 votes
Sebastian Koszela Jul 06, 2016

Hi Eli - what do you mean by "remote" as I don't see it in my Source tree

Familusi Babaranti Sep 24, 2016

I was able to get it working by following the steps below (Windows 8 OS)

  1. Click on Clone / New
  2. Select the browser icon to load the source path (you will get the error)
  3. Click on Edit Accounts (upper right)
  4. select your account (mine was listed)
  5. click edit (it will ask for your password) and load another form where you can change your preferred protocol to SSH.
  6. Note that your username should be Bitbucket username and not email

Hope this helps



3 votes
Alan Zimmerman Dec 03, 2018

After many hours of fumbling around, removing the passwd file was the fix that finally worked for me, detailed here:

0 votes
Kirsten Greed Oct 08, 2016

This fixed one error.  However I then ran into problems trying to get SSH woring.  Namely when I tried to clone a repository I got an error

"Authentication via SSH keys failed"

I  created the SSH key using Tools > Create or Import SSH Keys.

The error asked "Do you want to launch the SSH key agent (Pageant) and retry?

When I tried this  the error repeated.

I have added the key using Pageant in the system tray and set it to default.

Strangely I have now reverted back to HTTPS and things seem to be working.

0 votes
Joshua Lovato May 28, 2018

I was able to resolve this error by backing up and using my atlassian community login instead of my bitbucket login.

0 votes
David Sadowski Nov 05, 2018

Mac OSX 10.13.3 same issue - am entering correct Bitbucket server base url, username and password and am getting Login erro all the time... what a waste of time... I have SSH private key added to my key manager.

I just downloaded the latest SourceTree (funny - it doesn't even allow you to look up version before authentication - what a nonsense!). Have an older version on another machine and it's still working. Wasting more and more time with Atlassian products = starting to decrease my productivity significantly.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,851 views 13 18
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you