Skip to content

teganburns/Google-Authenticator-2FA-Notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Google-Authenticator-2FA-Notes

Notes for setting up Google Authenticator

VIDEO

Prerequisites

Google Authenticator App

Android - https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2

iOS - https://itunes.apple.com/us/app/google-authenticator/id388497605

Instructions

WARNING: It is possible that you may become locked out if there are issues during setup. Therefore it is highly suggested that you have the option to physically access the machine you are installing to in the event that you do become locked out.

  1. Clone google-authenticator-libpam repo. git clone https://github.com/google/google-authenticator-libpam.git

  2. Build and install. ./bootstrap.sh && ./configure --prefix=/usr && make && sudo make install

  3. Run google-authenticator and follow the setup instructions.

  4. Add ChallengeResponseAuthentication yes to /etc/ssh/sshd_config

  5. Add auth required pam_google_authenticator.so to /etc/pam.d/sshd

External Resources