Setup Google Authenticator on FreeBSD
Run as root:
cd /usr/ports/security/pam_google_authenticator
make install
mkdir /var/lib/google-authenticatorEdit /etc/pam.d/sshd:
auth required pam_google_authenticator.so nullok noskewadjEdit /etc/pam.d/system:
auth required pam_google_authenticator.so nullok noskewadjLeave out nullok if you do not want to allow users without having google-authenticator configured to be able to log in.
Be sure your root account has google-authenticator setup if you remove nullok and added it to /etc/pam.d/system.
Run google-authenticator with every user you want to be able to use it.
comments powered by Disqus