On Thursday, January 30, 2014 4:47:40 AM UTC+1, Max Rahm wrote:
> So I had git running on my computer just fine. My password was saved with the 
> osxkeychain thingy and everything ran smoothly. Today I decided I should be 
> safe and enable google authenticator 2-step authentication on all the sites 
> that support it. Interestingly github supports it so I set it up. It works 
> fine through the website interface. I proceed to branch a project I'm working 
> on and do a bit of work and then I try to push the new branch up. Not 
> surprised at all when I find out my authentication doesn't work. What is 
> surprising to me is that I can't seem to find anything at all on google to 
> solve my problem. 
> my initial error was this:
>     git push --set-upstream origin binary-dev
>     remote: Invalid username or password.
>     fatal: Authentication failed for 'https://github.com/***/***.git/'
> I then purged my old password stuff to get the interactive prompt with:
>     git credential-osxkeychain erase
>     host=github.com
>     protocol=https
> And that worked at getting rid of my old settings but now I get:
>     git push --set-upstream origin binary-dev
>     Username for 'https://github.com': ***
>     Password for 'https://***@github.com':
>     remote: Invalid username or password.
>     fatal: Authentication failed for 'https://github.com/***/***.git/'
> So git itself doesn't seem to know about the google authenticator. I 
> literally can't seem to find any information on this. About half the pages 
> are about how to set it up on the website and the other half are how to fork 
> the actual google authenticator source code. I may not be creative enough 
> with my keywords though. There may also be no solution but then I have to 
> wonder why github offers 2-factor auth at all? Is there anyone out there 
> who's been stuck here like me and has found a way out? Any help would be 
> *greatly* appreciated. I just want git to work like it did before I added the 
> 2-step auth to github.
> Thanks in advance,  
> Max

This sounds like something you should bring up with GitHub support: 

That said, I haven't enabled GitHub 2 factor authentication myself, but I'm 
guessing that it has nothing to do whatsoever with Git authentication over 
HTTPS and SSH (i.e., everything command line). It only applies to the web 
login to your account on github.com.

Regarding the Google Authenticator, it's just a tool for Android/iPhone, 
and that doesn't apply in your case since you're on the command line. I'm 
not sure why you're mixing that in here.

Read through 
and https://help.github.com/articles/about-two-factor-authentication for 
more information, and if that doesn't clear things up, please contact 

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to