softsave.dev

My Holding Pen

Menu
  • Home
  • Backblaze Backups
  • Secure VPN Service
Menu

Reset 2FA for OpenVPN User

Posted on May 12, 2022January 31, 2023 by Jay Thomas

We have a standard vanilla deployment of OpenVPN. One of our users recently switched phones, and while his Google Authenticator app was transferred across and the code is still visible, it no longer functions with OpenVPN.

We only need to scan the QR code to add OpenVPN to the Google Authenticator app, I reasoned, and he’ll be back online in no time. Wrong.

There doesn’t appear to be a method to display the original QR code once the user is up and running because Authenticator is bound to the device and continues to believe it is ready for action.

So, the user account within OpenVPN needs authentication reset. This reset process tells OpenVPN to display a new QR code, and the app can then be configured correctly.

To complete this process, SSH into the OpenVPN server, then type the following, replacing <USERNAME> with the user’s login id that you wish to reset.

cd /usr/local/openvpn_as/scripts/
sudo ./sacli --user <USERNAME> GoogleAuthRegen

What is this place?



This is my digital notepad. I use this site to store useful (to me) information and keep it for future reference. If this is helpful to someone in the future, cool. If I've used your content, I've been sure to cite you as the source of the content.

Any questions? Drop me a note.

hello@softsave.dev

My Links

Reddit - /msp
Reddit - /sysadmin
Exchange - Latest Build Info
SSL Tester

Recent Posts

  • Dropbox and Windows Server – Unsupported OS Fix
  • CrowdStrike and Windows: Blue Screen of Death
  • Yealink T33G Firmware – Phone Recovery
  • Authy Desktop App for Windows
  • Windows Server 2022 Won’t Activate
  • Roku’s Secret Menu
  • Common Default Router IP Addresses
  • Grammarly for Microsoft Office
  • Dell Thunderbolt Dock – WD22TB4 – Display Issues
  • Windows 11: RDP Error In Data Encryption
  • Adware / Bloatware Free FileZilla Client
  • RealTek 2.5 Gig Ethernet Driver
  • Let’s Encrypt for IIS on Windows Server 2022
  • Microsoft Ticking Timebombs – January 2023 Edition
  • Windows 10 / Windows 11 Remote Desktop Freeze
  • Securing SSH on Arch Linux
  • Download from Netflix and Amazon with Y2mate Downloader
  • AlmaLinux Repositories
  • Disable SELinux on AlmaLinux 9
  • Unlock an account in OpenVPN
  • Error downloading ISO image from IIS
  • Reset 2FA for OpenVPN User
  • HP EliteDesk Mini Won’t Boot from USB
  • Usable IP Addresses
  • Counter Strike: Source – USB Foot Pedal
©2026 softsave.dev