Skip to main content

此版本的 GitHub Enterprise Server 已于以下日期停止服务 2024-09-25. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

禁用个人帐户的双重身份验证

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

Warning

If you're a member or outside collaborator to a repository of an organization that requires two-factor authentication and you disable 2FA, you'll be automatically removed from the organization, and you'll lose your access to their repositories. To regain access to the organization, re-enable two-factor authentication and contact an organization owner.

We strongly recommend using two-factor authentication (2FA) to secure your account. If you need to disable 2FA, we recommend re-enabling it as soon as possible.

If your organization requires two-factor authentication and you're a member, owner, or an outside collaborator on a repository of your organization, you must first leave your organization before you can disable two-factor authentication.

To remove yourself from your organization:

  1. In the upper-right corner of any page on GitHub, click your profile photo, then click Settings.

  2. In the "Access" section of the sidebar, click Password and authentication.

  3. Click , then select Disable two-factor authentication.

    Screenshot of an account's 2FA settings. The ellipsis button (three dots) is highlighted with a dark orange outline.

  4. If necessary, enter your password or perform 2FA once more to disable 2FA for your GitHub account.

Further reading