# Rehearse Bitwarden recovery after losing a YubiKey

[Read this guide on KeySigner](https://keysigner.io/integrations/guides/recover-bitwarden-with-a-yubikey/)

Register a spare YubiKey for Bitwarden two-step login and make sure you can reach recovery information with the vault locked.

## Before you start

- Use a disposable Bitwarden account, a browser that supports FIDO2, and a spare FIDO2-capable YubiKey.
- Save the two-step recovery code outside the test vault. Keep the original web vault tab open while testing from a second browser.

## Data and access

- **Shared or checked**. Bitwarden checks the security-key response during two-step login. Opening the test item confirms vault access.
- **Check separately**. Keep the master password and independent recovery material available. Check any already trusted device separately.

## 1. Prepare a test account

Add a harmless item to a test vault. Save the Bitwarden two-step recovery code somewhere you can reach without that vault.

**Check.** The test item opens, and the separate recovery copy is reachable without opening the vault.

## 2. Register and test a spare

Follow Bitwarden’s passkey two-step login setup. Use a second browser to verify that the spare YubiKey handles the second step when the usual key is unavailable.

**Check.** With the original key put away, the second browser accepts the spare at the two-step prompt and opens the test vault.

## 3. Rehearse recovery

On the disposable account, follow Bitwarden’s lost-device instructions, open the harmless item and restore the desired two-step settings.

**Check.** The test item is still readable, the intended two-step method is listed again, and any new recovery code is stored separately.

## Check your result

A YubiKey used for Bitwarden’s two-step login is one access check. Keep the master password and independent recovery material available.

[How to verify your setup](https://keysigner.io/integrations/verify-a-setup/)

## If you get stuck

### The registered security key is missing

Try the spare key or another enrolled two-step method. Use Bitwarden’s recovery code only when you intend to turn off two-step login. Register new methods and save the replacement code afterward.

## Tools in this guide

- [Bitwarden](https://keysigner.io/integrations/bitwarden/)
  - [Set up authenticator two-step login for Bitwarden](https://bitwarden.com/help/setup-two-step-login-authenticator/)
- [YubiKey](https://keysigner.io/integrations/yubikey/)
  - [Check your key in Yubico Authenticator](https://docs.yubico.com/software/yubikey/tools/authenticator/auth-guide/home.html)

## Setup instructions

- [Set up Bitwarden passkey two-step login](https://bitwarden.com/help/setup-two-step-login-fido/)
- [Recover Bitwarden access without the usual key](https://bitwarden.com/help/lost-two-step-device/)

[More guides for this task](https://keysigner.io/integrations/tasks/rehearse-recovery/)
