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?

3 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.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

799 views 0 4
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