Skip to content

Instantly share code, notes, and snippets.

Last active Apr 11, 2017
What would you like to do?
Google Authenticator PAM - Vagrant User SSH Exception
# Skip Google Authenticator for the vagrant user:
auth [success=1 default=ignore] user = vagrant
auth required
auth required
auth required
auth include password-auth
account required
account include password-auth
password include password-auth
# close should be the first session rule
session required close
session required
# open should only be followed by sessions to be executed in the user context
session required open env_params
session optional force revoke
session include password-auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment