# 使用双重身份验证 (2FA) 保护您的帐户

可将 GitHub 上的帐户设置为在登录时除了密码以外还需要验证码。

## Links

* [关于双重身份验证](/zh/enterprise-server@3.22/authentication/securing-your-account-with-two-factor-authentication-2fa/about-two-factor-authentication)

  双重身份验证 (2FA) 是登录网站或应用时使用的额外保护层。启用 2FA 时，必须使用您的用户名和密码登录，并提供另一种只有您知道或可以访问的身份验证形式。

* [/about-mandatory-two-factor-authentication](/zh/enterprise-server@3.22/about-mandatory-two-factor-authentication)

* [配置双重身份验证](/zh/enterprise-server@3.22/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication)

  您可以选择多个选项，以向帐户添加第二个身份验证源。

* [配置双重身份验证恢复方法](/zh/enterprise-server@3.22/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods)

  你可以设置多种恢复方法，以便在丢失双重身份验证凭据的情况下访问你的帐户。

* [使用双重身份验证访问GitHub](/zh/enterprise-server@3.22/authentication/securing-your-account-with-two-factor-authentication-2fa/accessing-github-using-two-factor-authentication)

  启用 2FA 后，系统会要求你在登录 GitHub时提供 2FA 身份验证代码以及密码。

* [/countries-where-sms-authentication-is-supported](/zh/enterprise-server@3.22/countries-where-sms-authentication-is-supported)

* [更改双因素身份验证方法](/zh/enterprise-server@3.22/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-your-two-factor-authentication-method)

  无需完全禁用双因素身份验证 (2FA) 即可更改 2FA 方法。

* [双因素身份验证问题故障排除](/zh/enterprise-server@3.22/authentication/securing-your-account-with-two-factor-authentication-2fa/troubleshooting-two-factor-authentication-issues)

  如果在使用 2FA 验证身份时遇到问题，可以尝试对配置的身份验证方法进行故障排除。

* [丢失 2FA 凭据时恢复帐户](/zh/enterprise-server@3.22/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials)

  如果无法访问双重身份验证凭据，您可以使用恢复代码或其他恢复选项重新获取对帐户的访问权限。

* [禁用个人帐户的双重身份验证](/zh/enterprise-server@3.22/authentication/securing-your-account-with-two-factor-authentication-2fa/disabling-two-factor-authentication-for-your-personal-account)

  如果禁用个人帐户的双重身份验证，可能失去对所属组织的访问权限。