De Wiki inetshell
Saltar a: navegación, buscar

https://www.digitalocean.com/community/tutorials/how-to-set-up-multi-factor-authentication-for-ssh-on-centos-7

yum install epel-release
yum install google-authenticator
google-authenticator
echo "auth required pam_google_authenticator.so nullok" >> /etc/pam.d/sshd  (Agregar la linea al final del archivo)
vi /etc/ssh/sshd_config (Cambiar 'ChallengeResponseAuthentication yes')
systemctl restart sshd