Implementing Google Authenticator For Ssh
Tags: linux
CentOS
yum install epel-releaseyum install google-authenticatorEdit /etc/pam.d/sshd add auth required pam_google_authenticator.so as the second line (or first method of auth near the top)
Edit /etc/ssh/sshd_config and make sure ChallengeResponseAuthentication yes is set.
Run google-authenticator as your user to set the TOTP and choose various options for it.