You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com>
Copy file name to clipboardExpand all lines: content/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods.md
In addition to securely storing your two-factor authentication (2FA) recovery codes, we strongly recommend configuring two or more authentication methods to avoid losing access to your account. For more information, see [AUTOTITLE](/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-a-security-key).
22
22
23
-
## Downloading your two-factor authentication recovery codes
23
+
As well as configuring authentication methods, we'd also strongly suggest setting up some 2FA recovery methods which may be helpful if you were ever to lose your authentication methods. Recovery methods available to be configured include: the account's recovery codes file, SSH key(s), {% data variables.product.pat_generic_caps_plural %} (PATs) and verified device(s).
24
+
25
+
## About the recovery codes file
26
+
27
+
The recovery codes file includes one-time codes for account recovery if you can’t access your two-factor authentication method. You should download and store these codes securely.
28
+
29
+
### Downloading your two-factor authentication recovery codes
24
30
25
31
{% data reusables.two_fa.about-recovery-codes %} You can also download your recovery codes at any point after enabling two-factor authentication.
26
32
@@ -36,7 +42,7 @@ If you generate new recovery codes or disable and re-enable 2FA, the recovery co
36
42
* To save a hard copy of your recovery codes, click **Print**.
37
43
* To copy your recovery codes for storage in a password manager, click **Copy**.
38
44
39
-
## Generating a new set of recovery codes
45
+
###Generating a new set of recovery codes
40
46
41
47
Once you use a recovery code to regain access to your account, it cannot be reused. If you've used all 16 recovery codes, you can generate another list of codes. Generating a new set of recovery codes will invalidate any codes you previously generated.
42
48
@@ -45,7 +51,7 @@ Once you use a recovery code to regain access to your account, it cannot be reus
45
51
{% data reusables.two_fa.show-recovery-codes %}
46
52
1. Under "Generate new recovery codes", click **Generate new recovery codes**.
47
53
48
-
## Configuring backups for your time-based one-time password (TOTP) app
54
+
###Configuring backups for your time-based one-time password (TOTP) app
49
55
50
56
Most TOTP apps support backups. If you lose access to your authentication device, you can use your TOTP app backup to access your authentication method and account credentials on a different authentication device, ensuring continued access to your 2FA-enabled account.
51
57
@@ -55,6 +61,20 @@ The process of configuring backups is different for each TOTP app. For some exam
SSH keys can be configured and used for account recovery if ever required. To set up 1 or more SSH keys that can be used to recover access to your 2FA-enabled account, see [AUTOTITLE](/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account).
67
+
68
+
> [!NOTE]
69
+
> Be sure to choose 'authentication' as the key's type during this process.
70
+
71
+
## {% data variables.product.pat_generic_caps_plural %}
72
+
73
+
{% data variables.product.pat_generic_caps_plural %} (PATs) can be configured and used for recovery if ever needed. To set up 1 or more PATs that can be used to recover access, see [AUTOTITLE](/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic).
74
+
75
+
> [!NOTE]
76
+
> Be sure to choose 'repo' when choosing the 'scopes' available during this process.
0 commit comments