Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Authentication failed after 2-factor-authentification setup

Hi, 

I can't pull or push after that I actived the 2-factor-authentification on my github account. 


I got the following errors:

remote: Invalid username or password.

fatal: Authentication failed for 'xxx'

 

On the Source Tree settings, under my accounts I can't click on Connect Account. 

What sould I do?

Thanks,
Anna

1 answer

1 accepted

0 votes
Answer accepted

Hi Anna,

I had the same problem and found the answer here. I updated the git command-line package (https://git-scm.com/download) and now Sourcetree is prompting me for the two-factor authentication number.

I am surprised that Sourcetree is still not showing any warning or informative text for this! The Atlassian team knew about it in February 2018. (Ping, @Mike Corsaro :))

Hi Rolf, 

Thank you for your answer!
Unfortunately that didn't seem to work for me. I'm on mac, I found the "Use System Git" button they wrote about, but it didn't help.

I'm not so technical and familiar with Source Tree, is there a way to call a support technician and get some help? (I can't find any phone numer or a chat function anywhere though).

Hmm, you're right. I tried it on my Mac and couldn't login to Github in Sourcetree even after I upgraded everything to the latest version.

I ended up installing the Github Desktop app on the Mac - I guess my confidence in Sourcetree got a bit shaken by all this. Anyway, logging in and cloning the repo with Github Desktop worked perfectly (not surprising since it's their own app). If you need to use Sourcetree specifically then it won't help you, but otherwise it might be worth checking out the Github app.

Good luck!

/Rolf

Hi again, 

Thanks for recommending the Github Desktop app, it was easy to set it up and use it instead of Source Tree :) 
I'll continue to use that one instead. 

Thanks again,
Anna

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published 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...

5,802 views 4 12
Read article

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