After you configure 2FA via a TOTP mobile app or via SMS, you can add a security key that supports the FIDO U2F standard to use for two-factor authentication on GitHub.

Note: FIDO U2F authentication is currently only available for the Chrome browser.

  1. You must have already configured 2FA via a TOTP mobile app or via SMS.
  2. Ensure that you have a FIDO U2F compatible security key inserted into your computer.
  3. In the top right corner of any page, click your profile photo, then click Settings. Settings icon in the user bar
  4. In the user settings sidebar, click Security. Security settings sidebar

  5. Under Two-Factor Authentication, click Edit. Edit 2FA methods

  6. Under Security Keys, click Register new device. Registering a new FIDO U2F device

  7. Type a nickname for the security key, then click Add. Providing a nickname for a FIDO U2F device
  8. When prompted, touch your security key to have it authenticate against GitHub. Prompt for a FIDO U2F device