Two-step Login via YubiKey | Bitwarden Help Center (2024)

My Account

Two-step Login

Two-step login using YubiKey is available for premium users, including members of paid organizations (families, teams, or enterprise). Any YubiKey that supports OTP can be used. This includes all YubiKey 4 and 5 series devices, as well as YubiKey NEO and YubiKey NFC. You can add up to five YubiKeys to your account.

tip

Most modern YubiKeys, including 5 series keys, support the FIDO2 WebAuthn protocol. If your key supports it, which you can determine using the YubiKey Manager application, we recommend setting up your key as a FIDO2 WebAuthn device by following these instructions.

Setup YubiKey

To enable two-step login using Yubikey:

warning

Losing access to your two-step login device can permanently lock you out of your vault unless you write down and keep your two-step login recovery code in a safe place or have an alternate two-step login method enabled and available.

Get your recovery code from the Two-step login screen immediately after enabling any method.

  1. Log in to your web vault.

  2. Select the profile icon and choose Account Settings from the dropdown:

    Two-step Login via YubiKey | Bitwarden Help Center (1)

    Two-step Login via YubiKey | Bitwarden Help Center (2)
  3. Select the Security page and the Two-step Login tab:

  4. Locate the YubiKey OTP Security Key option and select the Manage button.

    Two-step Login via YubiKey | Bitwarden Help Center (5)

    Two-step Login via YubiKey | Bitwarden Help Center (6)

    You will be prompted to enter your master password to continue.

  5. Plug the YubiKey into your computer's USB port.

  6. Select the first empty YubiKey input field in the dialog in your web vault.

  7. Touch the Yubikey's button.

    If you will be using the YubiKey for a NFC-enabled mobile device, check the One of my keys supports NFC checkbox.

  8. Select Save. A green Enabled message will indicate that two-step login using YubiKey has been enabled.

  9. Select the Close button and confirm that the YubiKey OTP Security Key option is now enabled, as indicated by a green checkbox ( ).

Repeat this process to add up to 5 YubiKeys to your account.

note

We recommend keeping your active web vault tab open before proceeding to test two-step login in case something was misconfigured. Once you have confirmed it's working, logout of all your Bitwarden apps to require two-step login for each. You will eventually be logged out automatically.

Self-hosted setup

If you're an organization administrator, you'll need to configure a pair of environment variables in global.override.env in order to allow calls to be made to the YubiKey OTP API:

Variable

Description

globalSettings__yubico__clientId

Replace value with ID received from your Yubico Key.

Sign up for Yubico Keyhere.

globalSettings__yubico__key

Input the key value received from Yubico.

Use YubiKey

The following assumes that YubiKey is your highest-priority enabled method. To access your vault using a YubiKey:

  1. Log in to your Bitwarden vault on any app and enter your email address and master password.

    You will be prompted to insert your YubiKey into your computer's USB port or hold your YubiKey against the back of your NFC-enabled device:

    Two-step Login via YubiKey | Bitwarden Help Center (7)

    Two-step Login via YubiKey | Bitwarden Help Center (8)
    tip

    Check the Remember Me box to remember your device for 30 days. Remembering your device will mean you won't be required to complete your two-step login step.

    If you are using a non-NFC YubiKey on a mobile device:

    1. Plug your YubiKey into the device.

    2. Tap Cancel to end the NFC prompt.

      Two-step Login via YubiKey | Bitwarden Help Center (9)

      Two-step Login via YubiKey | Bitwarden Help Center (10)
    3. Tap the text input field, denoted by a gray underline.

    4. Tap or press your YubiKey button to insert your code.

  2. Select or tap Continue to finish logging in.

You will not be required to complete your secondary two-step login step to unlock your vault once logged in. For help configuring log out vs. lock behavior, see vault timeout options.

NFC troubleshooting

If your YubiKey's NFC functionality isn't working properly:

Check that NFC is enabled:
  1. Download YubiKey Manager.

  2. Plug the YubiKey into your device.

  3. Select the Interfaces tab, and check that all boxes in the NFC section are checked.

Check that NFC is configured properly:
  1. Download the YubiKey personalization tool.

  2. Plug the YubiKey into your device.

  3. Select the Tools tab.

  4. Select the NDEF Programming button.

  5. Select the the configuration slot you would like the YubiKey to use over NFC.

  6. Select the Program button.

(Android-only) Check the following:
  • That you checked the One of my keys supports NFC checkbox during setup.

  • That your Android device supports NFC and is known to work properly with YubiKey NEO or YubiKey 5 NFC.

  • That you have NFC enabled on your Android device (SettingsMore).

  • That your keyboard layout/format/mode is set to QWERTY.

Two-step Login via YubiKey | Bitwarden Help Center (2024)

FAQs

Two-step Login via YubiKey | Bitwarden Help Center? ›

The YubiKey provides hardware-backed two-factor authentication on top of your password to protect your Google Cloud infrastructure from account takeovers.

Does YubiKey support 2FA? ›

The YubiKey provides hardware-backed two-factor authentication on top of your password to protect your Google Cloud infrastructure from account takeovers.

How do I enter the code from the Authenticator app? ›

Open the Authenticator app, select Add account from the Customize and control icon in the upper-right, and then select Work or school account. Select OR ENTER CODE MANUALLY. Enter the Code and URL from Step 1, and then select Finish.

How do I enable two-step verification in Bitwarden? ›

How to enable two-step login for your Bitwarden account
  1. Go to your Web app > Account Settings.
  2. Go to the menu bar on the left hand side and select Security, then in the top menu bar select Two-step login.

Can I use YubiKey to login? ›

If your laptop/desktop (Windows 8.1 or later) or your Windows Server (2012 and later) is joined to a classic Active Directory, you can use a YubiKey for login using the Smart Card functionality.

How do I enable 2FA login? ›

Allow 2-Step Verification
  1. Open your Google Account.
  2. In the navigation panel, select Security.
  3. Under “Signing in to Google,” select 2-Step Verification. Get started.
  4. Follow the on-screen steps.

Top Articles
Latest Posts
Article information

Author: Reed Wilderman

Last Updated:

Views: 6525

Rating: 4.1 / 5 (72 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.