Two-factor authentication suddenly fail when I access repository through https protocol

Dear forum,

I have been setup two-factor authentication to access my repository through https protocol for quite a long time. However today I can not push to my repository anymore since github reply me by

remote: Invalid username or password.
fatal: Authentication failed for ''

I login to my account through webpage and found those security logs:

I noticed there is a “oauth_authorization.destroy” event happend 8 days ago but I do know what is wrong with my account?

I am not very familiar with github, could you please help me out with this issue?


The OAuth authorization destroy event specifically mentions it is for the “GitHub Community Forum”, so that wouldn’t be causing a problem with you trying to push to a GitHub repository :grinning:

Can you tell us what tool you’re using to push to GitHub? Can you tell us step-by-step what you’re doing to reproduce the problem?

Let us know!

Sorry for delay of reply.

Actually I use git on my ubuntu virtual machine:

esky-sh@ubuntu:/opt/innostick/i6_4.9.88/linux-innostick6$ git --version
git version 2.7.4
esky-sh@ubuntu:/opt/innostick/i6_4.9.88/linux-innostick6$ git branch -a
* i6_4.9.88_v1.0
esky-sh@ubuntu:/opt/innostick/i6_4.9.88/linux-innostick6$ git push origin imx_4.14.98_2.0.0_ga:imx_4.14.98_2.0.0_ga
Username for '': [REDACTED]
Password for '[REDACTED]':
remote: Invalid username or password.
fatal: Authentication failed for ''

git config:

esky-sh@ubuntu:/opt/innostick/i6_4.9.88/linux-innostick6/.git$ cat config
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url =
        fetch = +refs/heads/imx_4.9.88_2.0.0_ga:refs/remotes/origin/imx_4.9.88_2.0.0_ga
[branch "imx_4.9.88_2.0.0_ga"]
        remote = origin
        merge = refs/heads/imx_4.9.88_2.0.0_ga
        email = [REDACTED]
        name = NXElec
[branch "i6_4.9.88_v1.0"]
        remote = origin
        merge = refs/heads/i6_4.9.88_v1.0
[remote "nxp"]
        url =
        fetch = +refs/heads/*:refs/remotes/nxp/*

github info:

I use my email as user name and password generated from a mobile app ‘Authenticator’.

Here is security logs:

Please let me know if anything else needed for investigation.

I edited your post to remove your email address. We recommend against posting personal information like that in a public place, like this forum.

It appears from the git push log that you posted that you’re not even getting to the 2FA part of the login, the username/password combination is failing. You may want to try changing or resetting your password to ensure that you’re putting in the correct one.

If you continue to have problems with this, I’d recommend reaching out to private support at or via email at We don’t have access to your private account details here and they’ll be able to look into your configuration or activity further.

I hope that helps!

I worte a request on your contact page. Thanks for the supports.