Twitter + Yubikey example

  • Step 1: Enable Two-Factor Authentication (2FA) on Twitter

    • Before setting up your YubiKey with Twitter, you need to enable two-factor authentication (2FA) on your account.

    • Log in to your Twitter account.

    • Click on your profile picture in the top right corner and select "Settings and privacy" from the dropdown menu.

    • In the menu, click on "Security and account access."

    • Click on "Security" and then on "Two-factor authentication."

    • Choose a 2FA method (Authentication app or Security key) and follow the on-screen instructions to set it up.

      • RECOMMENDATION: DO NOT USE SMS/TEXT

  • Step 2: Add Your YubiKey to Twitter

    • After enabling 2FA on your Twitter account, you can now add your YubiKey as a security key.

    • In the "Security and account access" settings, click on "Security" and then on "Two-factor authentication."

    • Click on "Add security key" under the "Security key" section.

    • Enter your Twitter password when prompted and click "Confirm."

    • Connect your YubiKey to your computer's USB port (USB-A or USB-C, depending on your YubiKey model) or have your NFC-enabled smartphone ready if you're using a YubiKey with NFC support.

    • When prompted to "Insert your security key," touch the gold circle or edge of your YubiKey to activate it. For NFC-enabled YubiKeys, hold the key near your NFC-enabled smartphone.

    • Twitter will detect the YubiKey and register it as a security key for your account. You can give it a name for easier identification, then click "Done" to finish the process.

  • Step 3: Using YubiKey for Twitter Login

    • Now that you've set up your YubiKey with Twitter, you can use it as an additional layer of security when logging in.

    • Visit the Twitter login page and enter your username and password as usual.

    • If you have multiple 2FA methods enabled, Twitter may first prompt you to use one of the other methods (such as an authentication app). If this occurs, click "Choose a different method" and select "Security key."

    • When prompted to "Insert your security key," connect your YubiKey to your computer's USB port or hold it near your NFC-enabled smartphone if using an NFC-compatible YubiKey.

    • Touch the gold circle or edge of your YubiKey to activate it.

    • Twitter will verify the YubiKey and log you into your account securely.

  • Conclusion

    • Using a YubiKey with your Twitter account adds an extra layer of security, making it more difficult for unauthorized users

Last updated