Two Factor Auth

I have a free gitlab account, and it had two factor auth enabled.
My phone was recently reset where I lost my google authenticator two factor auth settings.
Unable to login without two factor auth, the only option available is to enter an old two factor auth key which i dont have either.
Any way to help here?
even tried resetting password.

Hi @sevuganhari

Did you have ssh configured with your GitLab account? If yes, you can run the following command to get a new set of recovery codes, which can be used as password to login to your account:

ssh git@gitlab.com 2fa_recovery_codes

Once you get the new set of recovery codes, use any one to login to your account and from the settings, “disable” two factor authentication and then set it up again.

1 Like

I have a same problem, but I don’t have SSH Access…