Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Setup Google Authenticator on OpenVPN
sudo aptitude install libpam0g-dev
git clone
cd google-authenticator/libpam/
sudo make install
sudo cp /etc/pam.d/common-account /etc/pam.d/openvpn
echo "auth required" | sudo tee -a /etc/pam.d/openvpn
echo "plugin /usr/lib/openvpn/ openvpn" | sudo tee -a /etc/openvpn/server.conf
sudo service openvpn restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment