OPNsense Forum

English Forums => General Discussion => Topic started by: albertcuy on June 15, 2023, 05:10:58 AM

Title: 2FA with Google Authenticator workaround
Post by: albertcuy on June 15, 2023, 05:10:58 AM
Hi All,


Let's say that i use it as the sole authentication database/method, then lose my phone. How can i recover? tia
Title: Re: 2FA with Google Authenticator workaround
Post by: meyergru on June 15, 2023, 08:22:10 AM
As always with TOTP: Export the keys before you lose them and store the them away in a safe place.

With Google authenticator, export is somewhat limited, but you can use tools like this: https://github.com/krissrex/google-authenticator-exporter

Another way would be to allow ssh access with private keys and modify the /config/config.xml as to allow login without 2FA.