A Time-based One-Time Password (TOTP) application automatically generates an authentication code that changes after a certain period of time.

Tip: To configure authentication via TOTP on multiple devices, during setup, scan the QR code using each device at the same time. If 2FA is already enabled and you want to add another device, you must re-configure 2FA from your security settings.

  1. Download one of these apps.
  2. Settings icon in the user barIn the top right corner of any page, click your profile photo, then click Settings.
  3. Security settings sidebarIn the user settings sidebar, click Security.

  4. 2FA dialog boxUnder Two-factor authentication, click Set up two-factor authentication.

  5. On the Two-factor authentication page, click Set up using an app.

  6. On the "Add GitHub to your two-factor authentication app" page, do one of the following:

    • Scan the QR code
    • QR code pageManually type the security code into your TOTP application. If you're using Microsoft Authenticator, you'll need to use this method.
  7. TOTP Enable fieldThe TOTP mobile application will save your GitHub Enterprise account and generate a new authentication code every few seconds. On GitHub Enterprise, on the 2FA page, type the code and click Enable.

  8. Download recovery codes buttonDownload your recovery codes and save them in a safe place, such as a password manager. Your recovery codes will help get you back into your account if you've lost access.

Further reading