How to get two-factor authentication when resetting a password and not having devices configured for two factors

Recently, I wanted to use one of my old GitHub accounts for a specific project where two-factor authentication was enabled. Since I could not remember the password, I used the option Forgot password and reset password.

However, after successfully changing the credentials, GitHub expects, as usual, to expect a two-way authentication key, since I didn’t have the same device now, I don’t have a GitHub configured to receive two-way authentication, and I don’t have more account information than about my credentials.

Is there a way to get two-way refactoring to work. Or can I come in?

+5
source share
1 answer

If you have GitHub account credentials, you can log in to the specified account and enable 2FA

https://help.github.com/assets/images/help/2fa/2fa -settings.png

You can then create a PAT (Personal Access Token) to use this as a password (and bypass step 2fa when clicked on the command line).

Personal access tapes are useful when they are too cumbersome to provide a client / secret pair for a complete application, for example, when authenticating to GitHub from Git using HTTPS or in a command line utility or script.


Later I reset my password, and I did not have the device that I configured for my DuO Mobile. How can I log in now. He asks for 2FA, and I have no way to provide a key.

Then you will need to follow β€œ Recovering your account if you have lost 2FA credentials ”

Having access to your recovery codes in a safe place or setting an additional mobile phone number for recovery, you will be returned to your account.

+3
source

Source: https://habr.com/ru/post/1234084/


All Articles