How to enable 2FA on Raspberry Pi
Enable two-factor authentication on Raspberry Pi to stop unauthorized logins. After setup, Raspberry Pi asks for a rotating code from MS Authenticator App in addition to your password.
Step-by-step setup
- 1
Sign in to Raspberry Pi and open your Raspberry Pi account security settings.
- 2
Turn on two-factor authentication and choose the authenticator-app option.
Look for "Authenticator app", "Authentication app", or "TOTP" rather than SMS.
- 3
Scan the QR code with MS Authenticator App.
Open MS Authenticator App, tap add, and point your camera at the QR code Raspberry Pi displays. Can't scan? Enter the setup key manually instead.
- 4
Enter the 6-digit code to confirm.
Type the code MS Authenticator App generates to verify and link your Raspberry Pi account.
- 5
Save your backup codes.
Store the recovery codes Raspberry Pi gives you somewhere safe — you'll need them if you lose your phone.
Menu names on Raspberry Pi can change — the official Raspberry Pi 2FA documentation ↗ always has the exact, current path.
Frequently asked questions
- Does Raspberry Pi work with authenticator apps like MS Authenticator App?
- Yes. Raspberry Pi supports TOTP authenticator apps, so you can generate its two-factor codes in MS Authenticator App.
- Is Raspberry Pi two-factor authentication free?
- Yes. Enabling authenticator-app 2FA on Raspberry Pi is free — you only need the free MS Authenticator App.
- What if I lose access to my Raspberry Pi 2FA codes?
- Use the backup or recovery codes you saved during setup. If you didn't save them, contact Raspberry Pi support to regain access, then re-add the account to MS Authenticator App.
Generate your Raspberry Pi codes in MS Authenticator App
Free, offline, and encrypted. One tap for every 6-digit code.
Get the appMore Shopping guides
Novaz is not affiliated with, endorsed by, or sponsored by Raspberry Pi. Raspberry Pi and its logo are trademarks of their respective owner and are used here for identification only.
