google-authenticator-libpam

PAM module enabling two-factor authentication via Google Authenticator

brewmacoslinux
Try with needOr install directly
Source

About

PAM module for two-factor authentication

Commands

google-authenticator

Examples

Generate a new secret key and QR code for two-factor authentication$ google-authenticator
Generate secret key with time-based codes and no confirmation required$ google-authenticator -t -d -f
Enable two-factor authentication in SSH by configuring PAM$ sudo google-authenticator && sudo nano /etc/pam.d/sshd