git clone https://code.google.com/p/google-authenticator/ cd libpam/ make sudo checkinstall -D sudo dpkg -i libpam_20120827-1_i386.deb
# One Time Password echo "auth required pam_google_authenticator.so" >> /etc/pam.d/common-auth # SSH. , public key PAM, OTP . echo "auth required pam_google_authenticator.so" >> /etc/pam.d/sshd # , . auth required pam_google_authenticator.so nullok # OTP
ChallengeResponseAuthentication yes
/etc/init.d/ssh restart
Source: https://habr.com/ru/post/150271/
All Articles