Skip to content
rodolfo.gg
Go back

Google Authenticator on two or more devices: a technical guide to avoid losing access.

CC BY-NC-ND 4.0
Rodolfo González González

Google Authenticator on two or more devices: a technical guide to avoid losing access.

Introduction

If you use Google Authenticator as a second authentication factor, you should not depend on a single phone. If that phone is damaged, lost, factory reset, or becomes inaccessible, you can be locked out of important services: email, hosting, banking, cloud panels, GitHub, social networks, domains, DNS managers, etc.

The solution is not simply “copying the app”. What matters is understanding that Google Authenticator stores TOTP seeds: cryptographic secrets shared between the service and your authenticator. Any device with the same seed can generate the same temporary codes. That is why you can have the same codes on two or more devices, but also why you must protect those devices very carefully.

In this guide we will look at three strategies:

  1. Synchronization with a Google account, convenient and suitable for many users.
  2. Local device-to-device transfer via QR, useful if you prefer not to depend on the cloud.
  3. Manual registration of the second device when configuring 2FA, the cleanest option when you are still activating the second factor on a site.

We will also cover what to do with backup codes, what risks exist, how to document your accounts, how to test recovery, and what procedure to follow if you lose your main phone.


Table of contents

Table of contents

1. Basic concepts: what you are really protecting

Google Authenticator typically implements TOTP, which stands for Time-Based One-Time Password. TOTP is defined in RFC 6238 and is an extension of HOTP, defined in RFC 4226. The practical difference is that HOTP advances by counter, while TOTP advances by time.

A typical TOTP code has these properties:

In simplified form:

code = TOTP(secret_seed, current_time)

The site’s server and your authenticator app both know the same seed. When you enter a code, the server calculates what the valid code should be for that time interval and compares it with what you typed.

The important consequence is this:

If two devices have the same TOTP seed and their clocks are reasonably synchronized, both will generate the same valid code for the same account.

That is why it is technically possible to have Google Authenticator on two or more devices.


2. Mental model: password, second factor, and TOTP seed

In a classic TOTP-based authentication, three elements are involved:

ElementExampleWhat happens if compromised
Something you knowpasswordan attacker would still need the second factor
Something you haveauthenticator app with the TOTP seedan attacker would still need the password
Recovery codessite’s backup codescan temporarily bypass the authenticator

The second factor is not “the app” in the abstract. The second factor is operational access to the seed that allows generating codes.

This has two implications:

  1. If you have the seed on more devices, you reduce the risk of lockout.
  2. If you have the seed in too many places or in poorly protected places, you increase the attack surface.

The goal is to balance availability and security.


3. Possible strategies

Strategy A: sync Google Authenticator with your Google account

Since 2023, Google Authenticator allows syncing codes with a Google account. This allows restoring codes on another device by signing in with the same Google account inside the app.

Advantages

Disadvantages

When to use it

Recommended if:

It is not the first recommendation if you protect critical assets such as:

In those cases, consider a more controlled strategy: offline second device, FIDO2/WebAuthn keys, and printed recovery codes.


Strategy B: transfer accounts via QR between devices

Google Authenticator allows exporting accounts from the old device and importing them onto another device via QR codes.

This option is useful when you cannot or do not want to use Google account synchronization.

General flow

On the current device:

  1. Open Google Authenticator.
  2. Open the app menu.
  3. Select Transfer accounts.
  4. Select Export accounts.
  5. Unlock the device if the app requests it.
  6. Choose the accounts you want to export.
  7. The app will generate one or more QR codes.

On the second device:

  1. Install Google Authenticator.
  2. Open the app.
  3. Select Transfer accounts.
  4. Select Import accounts.
  5. Scan the QR codes shown on the first device.
  6. Verify that the accounts appear and generate codes.

Advantages

Disadvantages


Strategy C: scan the same registration QR on two devices

When you enable 2FA on a service, the site normally shows an initial QR code. That QR contains the TOTP seed. Before confirming the activation, you can scan that same QR code with two devices.

Example:

  1. Go to example.com.
  2. Navigate to Security → Two-Factor Authentication → Authenticator app.
  3. The site shows a QR code.
  4. Scan it with your main phone.
  5. Also scan it with your secondary phone or tablet.
  6. Check that both generate the same code.
  7. Confirm the code on the site.
  8. Save the backup codes that the site provides.

Advantages

Disadvantages

Recommendation

For new accounts, this is my preferred method:


A robust and reasonable configuration would be the following:

LayerRecommendation
Primary deviceGoogle Authenticator on your daily phone
Secondary deviceGoogle Authenticator on an old phone, tablet, or second phone
Emergency recoveryBackup codes for each service
Additional protectionStrong biometric/PIN lock on each device
Critical accountsPrefer FIDO2/WebAuthn keys when the service allows it
InventoryPrivate list of services with 2FA enabled

Secondary device

The second device does not need a SIM card. It can be:

What matters is that it:


5. Step-by-step procedure: Google Authenticator on two devices

Scenario 1: you already have Google Authenticator running on your current phone

This is the most common case.

Step 1: prepare the second device

On the second device:

  1. Update the operating system.
  2. Set up a screen lock with a long PIN, password, or biometrics.
  3. Install Google Authenticator from the official store.
  4. Verify that the time and time zone are set to automatic.
  5. Do not install unnecessary apps.

Step 2: decide whether you will use Google account sync

You have two paths.

Path A: with synchronization
  1. Open Google Authenticator on the main phone.
  2. Tap your profile photo or initials.
  3. Sign in with your Google account if you have not done so.
  4. Allow saving codes to the Google account.
  5. Open Google Authenticator on the second device.
  6. Sign in with the same Google account.
  7. Verify that the same accounts appear.
Path B: without synchronization
  1. On the main phone, open Google Authenticator.
  2. Go to Transfer accounts → Export accounts.
  3. Select the accounts you want to copy.
  4. On the second device, go to Transfer accounts → Import accounts.
  5. Scan the QR codes generated by the first device.
  6. Repeat until all accounts are transferred.

Step 3: compare codes

For each important account:

  1. Wait for both devices to be in the same 30-second interval.
  2. Compare the code shown on both.
  3. It should be the same or change at the same time.
  4. If it differs, check the device’s time.

Step 4: test a real login

Seeing that codes appear is not enough. Do a real test:

  1. Open a private/incognito window in your browser.
  2. Sign in to the service.
  3. Enter your username and password.
  4. When prompted for the 2FA code, use the second device.
  5. Confirm that you can sign in.
  6. Sign out.

Do this at least for your critical accounts.


Not all accounts deserve the same level of protection. It is worth classifying them.

Critical accounts

Examples:

For these accounts:

Important but non-critical accounts

Examples:

For these accounts:

Low-impact accounts

Examples:

For these accounts:


7. Backup codes: the piece many people ignore

Many services, when enabling 2FA, provide a set of backup codes. These codes are typically single-use. They allow you to sign in if you do not have access to the authenticator.

You must treat them as highly sensitive credentials.

Best practices

Reasonable storage options

MethodComment
Paper printoutGood if stored in a safe or controlled location
Password managerSuitable if the manager is well protected
Encrypted fileSuitable for technical users
Encrypted USB driveGood as offline backup
Sealed envelopeUseful for family or corporate recovery

Example with a GPG-encrypted file

You can store the codes in a text file and encrypt it:

Terminal window
gpg --symmetric --cipher-algo AES256 backup-codes.txt

This will generate:

backup-codes.txt.gpg

Then delete the plain text file:

Terminal window
shred -u backup-codes.txt

On systems where shred is unreliable due to SSDs, snapshots, or journaling, the safest approach is to create the file directly inside an encrypted volume or use a password manager.


8. The Google account as a critical point

If you decide to sync Google Authenticator with your Google account, that account becomes an essential part of your recovery strategy.

Therefore, the Google account must be better protected than the average account.

Minimum recommendations

  1. Use a unique, long password.
  2. Enable 2FA on the Google account.
  3. Set up passkeys.
  4. Add at least one physical security key if you manage important accounts.
  5. Review your recovery email and phone number.
  6. Generate Google backup codes.
  7. Store those backup codes outside the phone.
  8. Review connected devices periodically.
  9. Do not share the Google account with anyone.

Strong recommendation

For a Google account that centralizes recovery for other services, consider using:


9. Risks of having Authenticator on multiple devices

Having redundancy reduces the risk of lockout, but increases the points where the seed exists.

Risk 1: physical theft of a secondary device

If the second device has no lock, someone could open Google Authenticator and generate codes.

Mitigations:

Risk 2: malware or compromised device

A rooted device, with suspicious apps or without patches, is a bad idea for storing TOTP seeds.

Mitigations:

Risk 3: compromised cloud

If you use synchronization, you depend on the security of the associated account.

Mitigations:

Risk 4: storing QR codes or seeds in unsafe places

The registration or export QR code can allow generating codes.

Mitigations:


10. What to do if you already lost your phone

The answer depends on whether you prepared redundancy beforehand.

Case A: you had Google account synchronization

  1. Get a new device.
  2. Install Google Authenticator.
  3. Sign in with the Google account used for syncing.
  4. Verify that your codes appear.
  5. Access your critical services.
  6. Review recent activity on the Google account.
  7. Change passwords if you suspect theft.
  8. Revoke sessions from the lost device.

Case B: you had a second device

  1. Use the second device to sign in to your accounts.
  2. Disable or replace 2FA on services if you suspect the lost phone may be compromised.
  3. Set up a new main phone.
  4. Transfer or reconfigure the seeds.
  5. Test the new device.

Case C: you only had backup codes

  1. Use a backup code to sign in to the service.
  2. Disable and re-enable 2FA.
  3. Scan the new QR code with at least two devices.
  4. Generate new backup codes.
  5. Invalidate the old codes if the service allows it.

Case D: you had no synchronization, no second device, and no backup codes

You will have to use the recovery process for each service. This may include:

This is precisely the situation we are trying to avoid.


11. Personal audit procedure

Make an inventory of your accounts with 2FA. You can use a private table like this:

ServiceUsername/email2FA activeMethodSecond deviceBackup codesLast testNotes
Googleuser@example.comyesTOTP/passkeyyesyes2026-05-10Critical account
GitHubuseryesTOTP/FIDO2yesyes2026-05-10Private repos
Cloudflareuser@example.comyesTOTP/FIDO2yesyes2026-05-10Domain DNS

Do not store this table in an unsafe location if it contains sensitive details. Ideally, store it inside your password manager or in an encrypted volume.


12. Recommendation for maximum-criticality accounts: FIDO2/WebAuthn

TOTP is much better than having no second factor, but it is not perfect. The main problem is that it remains vulnerable to real-time phishing: if you enter your username, password, and TOTP on a fake site, the attacker can immediately forward that data to the real site.

FIDO2/WebAuthn keys and passkeys resist this attack better because they are cryptographically bound to the legitimate domain.

For critical accounts, the order of preference is usually:

  1. Physical FIDO2/WebAuthn key, with at least two keys registered.
  2. Passkeys, with a clear recovery strategy.
  3. TOTP on two devices, plus backup codes.
  4. SMS, only as a last resort or secondary recovery if there is no alternative.

If a service allows multiple physical keys, register at least two:


13. Initial setup checklist

Use this list to configure your recovery scheme.

  • I identified my critical accounts.
  • I installed Google Authenticator on the primary device.
  • I installed Google Authenticator on the secondary device.
  • I enabled strong locks on both devices.
  • I decided whether to use Google account synchronization.
  • I copied the TOTP accounts to the second device.
  • I compared codes on both devices.
  • I tested a real login with the second device.
  • I downloaded or printed backup codes for each critical service.
  • I stored backup codes outside the main phone.
  • I reviewed my Google account recovery methods.
  • I reviewed active sessions and connected devices.
  • I registered passkeys or physical keys where possible.
  • I documented the date of the last test.

14. Biannual maintenance checklist

Every 3 to 6 months, check the following:

  • The second device powers on correctly.
  • Google Authenticator opens correctly.
  • The second device’s time is correct.
  • Codes match between the primary and secondary device.
  • I can sign in to my critical accounts.
  • Backup codes are still available.
  • I have not used backup codes without regenerating them.
  • There are no unknown devices connected to my Google account.
  • My recovery emails and phone numbers are still valid.
  • My physical keys still work.
  • My critical accounts do not rely solely on SMS.

15. Frequently asked questions

Can I have the same Google Authenticator on two phones?

Yes. You can do this via Google account synchronization, QR transfer, or by scanning the same registration QR with both devices when configuring 2FA.

Does the second phone need a SIM card?

No. Google Authenticator generates codes locally. It does not need SMS, mobile data, or a permanent Internet connection. It does need the device’s time to be correct.

Can I save screenshots of the setup QR code?

Technically yes, but it is not recommended. That QR contains the TOTP seed. If someone obtains the image, they can generate your codes. If you decide to keep a copy, do so only inside an encrypted container or trusted secret manager.

Is Google Authenticator synchronization enough?

For many people, yes. For critical accounts, I would not leave it as the only mechanism. I would add offline backup codes and, when possible, FIDO2/WebAuthn keys.

What happens when I switch phones?

If you use synchronization, install Google Authenticator on the new phone and sign in with your Google account. If you do not use synchronization, you must export from the old phone and import to the new one before erasing or selling the old one.

What happens when I sell my old phone?

Before selling it:

  1. Verify that the new device already has all the codes.
  2. Test login on critical accounts.
  3. Delete Google Authenticator from the old phone.
  4. Sign out of accounts.
  5. Factory reset the phone.
  6. Remove the old device from your connected accounts.

Can I use a password manager for TOTP?

Yes, some managers allow storing TOTP. It is convenient, but has a drawback: the password and the second factor may end up in the same place. For some accounts this is fine; for critical accounts, I prefer separating password and second factor or using FIDO2 keys.

Is SMS better than Google Authenticator?

Usually not. SMS can be vulnerable to SIM swapping, fraudulent number porting, interception, or social engineering with the carrier. TOTP is usually preferable to SMS. FIDO2/WebAuthn is usually preferable to TOTP.


For a technical person who wants to avoid losing access, my concrete recommendation would be:

  1. Keep Google Authenticator on your main phone.
  2. Add Google Authenticator to a second device.
  3. For new accounts, scan the initial QR with both devices.
  4. For existing accounts, use QR transfer or synchronization.
  5. Store backup codes for each critical account.
  6. Protect your Google account especially carefully.
  7. Use passkeys or FIDO2 keys on critical services.
  8. Test recovery at least twice a year.

The fundamental rule is simple:

Do not discover your recovery strategy on the day you lose your phone.

Set it up in advance, test it, and document the minimum necessary so that you can regain access even under stress.


17. References


Share this post on:

Next Post
How to install SingularityCE (and Apptainer) on Debian 13 without dying in the attempt.