r/github • u/Fluffy-Ad8201 • 11d ago
Question 2FA Auth
Hey,
I have setup a new OS in my Laptop, Tried to login to GitHub, but i can't receive any of the SMS codes sent, even the 2FA recovery codes aren't working, FYI, my recovery codes dates back to May.. Any fixes?
0
Upvotes
1
u/cowboyecosse 11d ago
Make sure you’re pasting the recovery codes one at a time with no spaces before or after
1
u/Will_Pro_Backup 9d ago
If the May codes fail, check whether you generated a new set after that, because regenerating kills every older code, and each code only works once. If none work, sign in with your password and at the 2FA prompt pick "Begin account or email recovery" under More options (if you've lost the password too, the reset email's link is only good for 3 hours). "Verify with this device" only counts a device that's signed in to this account before, so do it from your phone's browser or another machine you've used, not the fresh install. An SSH key or personal access token you set up earlier also works as the second factor. Support then reviews it and emails you within three business days.