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 'https://github.com/xxxx/xxxxxxx/'
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 😀
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 imx_4.14.98_2.0.0_ga imx_4.9.88_2.0.0_ga remotes/nxp/imx_4.14.98_2.0.0_ga remotes/origin/imx_4.9.88_2.0.0_ga 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 'https://github.com': [REDACTED] Password for '[REDACTED]': remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/NXElec/linux-innostick6/' esky-sh@ubuntu:/opt/innostick/i6_4.9.88/linux-innostick6$
esky-sh@ubuntu:/opt/innostick/i6_4.9.88/linux-innostick6/.git$ cat config [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = https://github.com/NXElec/linux-innostick6 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 [user] 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 = https://source.codeaurora.org/external/imx/linux-imx fetch = +refs/heads/*:refs/remotes/nxp/*
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 https://github.com/contact or via email at email@example.com. 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!