- Home
- GitHub
- Errors and problems
- Locked out by 2FA
Common problemGitHub
Locked out of GitHub after losing 2FA
Lost phone, app or recovery codes
You can no longer give the two-factor code, for example after losing or resetting your phone. GitHub Support cannot turn off 2FA for you, so you need one of your own recovery options.
How to fix it
Sign in at github.com/login and choose 2FA recovery code under More options, then enter one of your saved codes.
Use a passkey or security key instead if you added one to the account.
If you have none of these, choose Begin account or email recovery and verify the one-time password sent to your email.
Pick a verified device, an SSH key or a personal access token as proof, then wait for GitHub to review the request.
If no recovery option works, unlink your email address so you can use it on a new account.
From GitHub's help pages: docs.github.com, in our words. Checked on 5 November 2026. If the steps do not help, GitHub's own support is the next stop.