July 2013
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  

Categories

July 2013
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  

Google-authenticator in CentOS

yum install gcc gcc++ make python python-devel git pam-devel

cd /tmp git clone https://code.google.com/p/google-authenticator/ cd google-authenticator/libpam make make install cd /tmp rm -Rf google-authenticator/

  To enable ssh 2 factor:

sed -i ‘1 a\ auth required pam_google_authenticator.so’ /etc/pam.d/sshd Make sure that challenge response is listed as YES in your SSHD config

… ChallengeResponseAuthentication yes

Login […]