Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 5

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 'https://github.com/xxxx/xxxxxxx/'

 

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

aaa.jpg

 

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?

Thanks

 

4 Replies
Community Manager
Message 2 of 5

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

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!

Copilot Lvl 3
Message 3 of 5

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

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$

git config:

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/*

github info:

无标题1.jpg

 

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

Here is security logs:

无标题2.jpg

 

Please let me know if anything else needed for investigation.

Community Manager
Message 4 of 5

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

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 support@github.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!

Copilot Lvl 3
Message 5 of 5

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

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