Skip to content

Instantly share code, notes, and snippets.

View gabrielhesposito's full-sized avatar

Gabriel Esposito gabrielhesposito

View GitHub Profile
@luckydev
luckydev / gist:ed966a7c12fd4b1311c063b77dc81389
Created February 20, 2018 10:00
Reset Google authenticator token (2FA) for a specific openvpn user
SSH Login as openvpnas user
$ ssh openvpnas@<open-vpn-server-ip>
$ cd /usr/local/openvpn_as/scripts/ # Go to OpenVPN AS Scripts directory
$ sudo ./sacli --user USERNAME GoogleAuthRegen # Replace USERNAME with username to get a new Google Authenticator Secret
Source: https://forums.openvpn.net/viewtopic.php?t=15366