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

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?

4 answers

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

Thank you! This fix it!

Thanks much. Worked for me also.

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

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

 

 

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 vote

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

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