How to recoverd the Two-Factor Authentication?

I have lost my Two Factor Authentication scan code as well as the SSH Key. Is there any way to recover or reset my User Authentications ?

@kmuralidharan If you’re a GitLab.com user please feel free to contact us directly so that we can assist you with this. If this is regarding an account on a self-managed instance of GitLab then you’ll want to get in contact with a user with administrative rights to the instance.

1 Like

Hi, I’m unable to sign in my account because I lost my two-factor authentication device access.
I also didn’t find file 2fa_recovery_codes, probably I lost too.
But I still can git pull/push my privated sources, exist a way to disable two-factor authentication using git ?

If not, what I can do to recovery my account access whitout lost my data?

I contacted GitLab.com support, but I only received automatic response howto to use file 2fa_recovery_codes.

1 Like

@leandrotsampa If you’re able to perform git operations via SSH with your repositories then you should be able to generate new recovery codes that you can use to log in. The auto-response you received in the ticket you submitted has directions on how to do that.

If that doesn’t work, you’ll want to reply back to that ticket to let us know you still need help and we’ll be happy to assist you.

2 Likes

The operations I can make is:
git clone https://gitlab.com/leandrotsampa/VFDControl.git
git pull/push

Without problem, but I never accessed by ssh.
I can access by ssh without file 2fa_recovery_codes?

@leandrotsampa It sounds like your account doesn’t have an SSH key associated with it. Please go ahead with replying back to the ticket you submitted and we’ll get you sorted out from there.

I already replyed but no response yet.
Request number: 146257

And always when I request support only receive automatic response to use 2fa.

@leandrotsampa It looks like you’ve received a response on that ticket, so we are now actively assisting you with this matter in the proper manner and through the proper channel.

In the interest of reducing clutter and staying on topic let’s now discontinue using this thread for this conversation as the original issue has already been addressed.

@Tristan I have the same problem.
I’ve written to support under one thread but i didn’t get any human answer.

Maybe the Support team is busy handling huge support requests. Try back-reading the whole thread for details.

You need open a support request:
https://support.gitlab.com/hc/en-us/requests/new

After open you will get a automatic response, if howto not work to you, reply and wait contact.
Time of response is +/- 5 days.

1 Like

@Tristan And if I’ve access to the repositories via SSH, How Can I recover my gitlab access with SSH?

@Tristan

And if I’ve access to the repositories via SSH, How Can I recover my gitlab access with SSH?

@edycarreyes99 If you have access to GitLab.com via SSH keys still then you should be able to generate new recovery codes via SSH that you can provide at login.

I have the same problem.i’ve written to support ,ticket is 170000,i have not set ssh key , i can push or pull code through sourcetree,please help me

After open support ticket you will get a automatic response, if howto not work to you, reply and wait contact.
Time of response is +/- 5 days.

i recive reponse,but it does not work for me,i do not know how to do

@zhudongcool Please be aware that as of 8/15/2020 GitLab Support is no longer able to assist in disabling two-factor authentication on accounts not associated with a subscription. See our blog post for more details.

thank you,i don’t know that,my code is important for me,some project not check to local,i am so sad

[


祝东平

邮箱:zhudong.cool@163.com

](https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=祝东平&uid=zhudong.cool%40163.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fe9b984046193b11854a55deef5e3d6ba.jpg&items=["邮箱:zhudong.cool%40163.com"])

签名由 网易邮箱大师 定制

Hi,
You can following steps:

  1. run ssh git@gitlab.example.com 2fa_recovery_codes

  2. You will then be prompted to confirm that you want to generate new codes. Continuing this process invalidates previously saved codes:

    Are you sure you want to generate new two-factor recovery codes?
    

Any existing recovery codes you saved will be invalidated. (yes/no)

yes

Your two-factor authentication recovery codes are:

119135e5a3ebce8e
11f6v2a498810dcd
3924c7ab2089c902
e79a3398bfe4f224
34bd7b74adbc8861
f061691d5107df1a
169bf32a18e63e7f
b510e7422e81c947
20dbed24c5e74663
df9d3b9403b9c9f0

During sign in, use one of the codes above when prompted for your
two-factor code. Then, visit your Profile Settings and add a new device
so you do not lose access to your account again.