Difference between revisions of "Google-authenticator-libpam"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
  brew install google-authenticator-libpam
+
{{lc}}
 +
  [[brew install google-authenticator-libpam]]
 +
 
 +
 
 +
Includes <code>[[google-authenticator]]</code> binary.
 +
[[google-authenticator --help]]
  
  
Line 12: Line 17:
 
== See also ==
 
== See also ==
 
* {{Google Authenticator}}
 
* {{Google Authenticator}}
 +
 +
[[Category:Google]]
 +
[[Category:MFA]]

Latest revision as of 11:42, 15 February 2024

brew install google-authenticator-libpam


Includes google-authenticator binary.
google-authenticator --help


Add 2-factor authentication for ssh:
 echo "auth required /usr/local/opt/google-authenticator-libpam/lib/security/pam_google_authenticator.so" \
 | sudo tee -a /etc/pam.d/sshd

Add 2-factor authentication for ssh allowing users to log in without OTP:
 echo "auth required /usr/local/opt/google-authenticator-libpam/lib/security/pam_google_authenticator.so" \
 "nullok" | sudo tee -a /etc/pam.d/sshd

See also[edit]

Advertising: