I thought that the basic Github login (password and 2FA codes) was separate from the ssh key stuff.
There is a support page link <https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/reviewing-your-ssh-keys> on managing ssh keys suggesting that you could delete all old or compromised keys down to zero active keys, and start afresh with new ssh keys, but I could be mistaken (off by one..). Did you get (download) any recovery codes in the past... and still have them available.. ? I'd contact GitHub support before you get doubly locked out by trying too hard to look like someone hacking in ;-) On Sunday, January 2, 2022 at 5:32:04 AM UTC Chris Stone wrote: > Never used 2fa on GitHub. However it does make sense. I do know you'd have > to generate a new ssh key before you can access your repo via ssh since you > lost the old one > > On Sat, Jan 1, 2022, 10:02 PM robert kugler <[email protected]> wrote: > >> As a newbie to git, i am having trouble getting in to my github account. >> I have had a majoe computer hardware failure, and had to build a new >> computer with ubuntu 20. >> I have lost my github password, and the private ssh key from the old >> computer is gone. >> I try to log into github using firefox V95.0.1. >> I click "forgot password" on github and get an email link to reset my >> password. >> when I get a password reset email from GitHub, the 2FA requires a >> validation code. >> I have a github authentication app on my phone, and it does give me a >> nvalidation code, but that code does not ever work. >> I am wondering if it has something to do wirh my using a freshly rebuilt >> system, which may not have the same ssh key as the old system, but I am not >> sure. >> Can anyone help me with this? >> Thanks, >> Bob >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Git for human beings" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/git-users/62a84b7d-628e-4145-88b0-49f45f3d715cn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/git-users/62a84b7d-628e-4145-88b0-49f45f3d715cn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/0e72150d-b269-4cbf-88ca-6224768d62b2n%40googlegroups.com.
