How to set up a YubiKey security key for 2FA on Gmail and Facebook

You will add a YubiKey hardware key as a second factor to your Google and Facebook accounts, so a password alone is not enough to sign in. It suits anyone who wants stronger account security and already owns a compatible YubiKey. You need the key, your account passwords and a browser.

YouTube video: Setup a 2FA Key for MAXIMUM Online Security! (Yubikey Tutorial)

Captions are available. Use CC in the YouTube player.

7 chapters. Tap a step to jump to it.Chapters from the creator
Choose a chapter (7)
Video length
10 min 26 s
Time to do it
10 minutes
Difficulty
Easy
Steps
7

What you need

Steps

  1. Buy a YubiKey model that matches your devices, such as a USB-A, USB-C or NFC version. Check the ports on your phone and computer before ordering.

  2. Sign in to your Google account and open the security settings page for two-step verification.

  3. Choose the option to add a security key, then insert the YubiKey into a USB port when prompted.

  4. Touch the metal contact on the key when the browser asks, so it registers as your second factor. Name the key so you can recognise it later.

  5. Sign in to Facebook and open Settings, then Security and Login, and turn on two-factor authentication.

  6. Pick the security key option, insert the YubiKey and touch it to confirm. Keep your backup codes somewhere safe.

  7. Set your computer to lock with the key by registering it in your system security settings, then test locking and unlocking.

Tips and common mistakes

Register a second key or save backup codes, or you can lock yourself out if the key is lost.

Keep the key with you rather than leaving it plugged into the computer.

Use the key only on sites you trust, and check the browser address before entering your password.

Questions

Do I need a YubiKey for every account?

No. One key can be registered with many services, but adding a backup key or recovery codes is wise.

What if my computer has no USB-A port?

Choose a USB-C or NFC model, or use a USB adapter that fits your device.

Does this replace my password?

No. The key is a second factor, so you still enter your password first.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Money & Office

See all