最近我在我的github帐户上启用了2FA身份验证,但是从那以后,每次我将内容推送到任何存储库时都会发生错误。当我尝试这样做时,使用我的用户名和密码会出现以下错误消息:
Username for 'https://github.com': lucaspcburgos
Password for 'https://lucaspcburgos@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Igorxp5/AppLada.git/'
当我尝试使用启用2FA时由github提供的令牌(而不是密码)时,出现以下消息,提示我无权访问以前曾经拥有的存储库:
Username for 'https://github.com': lucaspcburgos
Password for 'https://lucaspcburgos@github.com':
remote: Permission to Igorxp5/AppLada.git denied to lucaspcburgos.
fatal: unable to access 'https://github.com/Igorxp5/AppLada.git/': The requested URL returned error: 403
无论我自己拥有与否,这都会发生在任何存储库中。我只有一个github帐户,并且我确定我的用户名,密码和令牌正确。有人可以帮我吗?
我的操作系统是Linux Ubuntu 18.04
[已编辑] 我刚刚发现,如果我关闭2FA,则可以使用我的密码,但是我确实需要使用2FA。