sodcalculator

10 Tech How-To

USB Security Key: Step-by-Step Setup Guide

Guide 10-30733 · Updated · Step by step

This guide walks you through turning a standard USB flash drive into a security key that can lock and unlock your computer or act as a second authentication factor for online accounts. You don’t need any special hardware—just a USB drive, a free software tool, and a few minutes. The result is a practical way to add an extra layer of protection without buying a dedicated hardware token.

What You’ll Need

  • A USB flash drive (any size works; 1 GB or more is fine)
  • A Windows, macOS, or Linux computer with an available USB port
  • For Windows: the free, open-source tool Rohos Logon Key (free for personal use) or Predator (free for non-commercial use). Both are widely used.
  • For macOS: the built-in FileVault recovery key can be stored on a USB drive, but for a true USB login key, you’ll need third-party software like USB Logon (free trial) or Kensington (paid). This guide focuses on Windows for the main steps, with notes for Mac.
  • For online accounts (Google, Microsoft, etc.): a USB drive that supports FIDO2/U2F—most modern USB drives do not, but you can use a dedicated security key (like YubiKey) or use the USB drive as a “security key” via the Google Authenticator app on a phone (not the same as a USB key). This guide covers the local computer lock, which is the most common DIY USB security key use.

Step-by-Step

  1. Back up any data on the USB drive. The setup process will reformat the drive, so copy any files you want to keep to your computer.
  2. Download and install the software. For Windows, go to the official Rohos Logon Key website and download the installer. Run it and follow the prompts. Choose “Install Rohos Logon Key” when asked.
  3. Plug in your USB drive. Insert the USB drive into a USB port on your computer. Wait for Windows to recognize it (you’ll hear a sound and see a notification).
  4. Launch Rohos Logon Key. Open the program from the Start menu or desktop shortcut. The main window will show your computer’s name and a list of available USB drives.
  5. Select your USB drive. Click on the drive letter that corresponds to your USB flash drive. Make sure you pick the right one—if you have multiple drives, double-check the capacity and label.
  6. Click “Create Security Key.” The software will ask you to enter your Windows password (the one you use to log in). Enter it and click OK.
  7. Set a PIN (optional but recommended). Rohos will ask if you want to set a PIN that must be entered when using the USB key. You can skip this, but a PIN adds protection if you lose the drive. If you set it, make sure you remember it.
  8. Wait for the key to be written. The software will format the USB drive (erasing all data) and write the security key files. This takes a few seconds. When done, you’ll see a confirmation message.
  9. Test the key. Lock your computer (Windows key + L) and then try to log in. You’ll see a new option: “Use USB key.” Insert the USB drive and press Enter (or click the icon). If you set a PIN, enter it. You should be logged in without typing your password.
  10. Keep the USB drive safe. Store it somewhere secure, like a drawer or a keychain. Do not leave it plugged in when you’re away from the computer—that defeats the purpose.

Common Mistakes

  • Choosing the wrong USB drive. If you have multiple drives, you might accidentally format the wrong one. Always check the drive letter and capacity before clicking “Create.”
  • Forgetting the PIN. If you set a PIN and forget it, you’ll be locked out of the USB key. You can still use your password to log in, but you’ll need to recreate the key.
  • Not testing the key before relying on it. If you set up the key and then immediately restart, you might find it doesn’t work. Always test it while you’re still logged in.
  • Using a USB drive that’s too old or failing. If the drive has bad sectors, the key might not work reliably. Use a known-good drive.
  • Assuming it works for online accounts. This DIY key only works for local Windows login. It won’t work as a FIDO2 key for Google or Microsoft. For that, you need a dedicated hardware key.

Tips

  • Create a backup key. If you have a second USB drive, create a second security key. That way, if you lose the first, you can still get into your computer.
  • Use a USB drive with a physical write-protect switch. Some drives have a small switch that prevents writing. If your drive has one, you can enable it after setup to prevent accidental deletion of the key files.
  • Label the drive. Write “Security Key” on it so you don’t mistake it for a regular storage drive.
  • Keep your Windows password safe. The USB key is an alternative login method, not a replacement. If you lose the key, you’ll still need your password.
  • Update the software occasionally. Check for updates to Rohos Logon Key to ensure compatibility with new Windows versions.

Troubleshooting

  • The USB key doesn’t work after setup. First, try plugging the drive into a different USB port. If that fails, restart the computer and try again. If it still doesn’t work, recreate the key from scratch.
  • You forgot your PIN. You can still log in with your regular password. Then open Rohos Logon Key, select the drive, and choose “Remove Security Key” or “Reset PIN” (depending on the version). You’ll need to recreate the key.
  • The software says “USB drive not found.” Make sure the drive is properly inserted and recognized by Windows (check File Explorer). Try a different USB port. If it still fails, the drive may be faulty.
  • You get an error during creation. This often happens if the drive is write-protected or has a file system that the software can’t format. Try formatting the drive manually (right-click in File Explorer > Format) as FAT32, then try again.
  • After a Windows update, the key stops working. Reinstall the latest version of Rohos Logon Key, then recreate the key on the same USB drive.
  • You lost the USB key. You can still log in with your password. To remove the old key, open Rohos Logon Key and delete the key entry for that drive. Then create a new key on a different drive.

Frequently Asked Questions

Can I use any USB drive as a security key?

Yes, for local computer login, any USB flash drive works as long as it’s recognized by your operating system. The software writes a small encrypted file to it. For online accounts (like Google), you need a FIDO2-certified hardware key, which is different.

Is this as secure as a dedicated hardware key like YubiKey?

For local login, it’s reasonably secure because the key file is encrypted and tied to your Windows account. However, a dedicated hardware key has a secure microcontroller that’s harder to clone. For high-security needs, a dedicated key is better.

What happens if I lose the USB key?

You can still log in with your regular password. The only risk is if someone finds the USB key and knows your PIN (if you set one). Without the PIN, the key is useless. You can remove the old key from the system and create a new one.

Does this work on macOS?

Not with the same software. macOS has FileVault, which can store a recovery key on a USB drive, but that’s for disk encryption, not login. For USB login on Mac, you’d need third-party software like USB Logon, which is less common.

Can I use the same USB drive for both storage and as a security key?

No. The software formats the drive and writes a hidden partition. You won’t be able to use it for regular file storage afterward. It’s best to dedicate a single drive for this purpose.

Will this work on multiple computers?

No. The security key is tied to the specific Windows account and computer it was created on. If you want to use a USB key on multiple computers, you’d need to create a separate key for each.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →