Remember to keep an SSH session open (in a separate terminal) while doing this.
- yum install google-authenticator
- google-authenticator
- follow steps, save backup stuff
- vim /etc/ssh/sshd_config:
- ChallengeResponseAuthentication yes ;
- vim /etc/pam.d/ssh, add “auth required pam_google_authenticator.so” after the auth line with password.
Now you can also set up httpd to use this:
yum install mod_authnz_external.x86_64 ,
(will do this later)