howtos:google_authenticator
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:google_authenticator [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Get the software: | ||
+ | |||
+ | < | ||
+ | apt-get install gcc mercurial libpam0g-dev -y | ||
+ | </ | ||
+ | |||
+ | Compile the PAM module: | ||
+ | |||
+ | < | ||
+ | cd google-authenticator/ | ||
+ | make install | ||
+ | </ | ||
+ | |||
+ | Now apply the PAM module to one of your authentication mechanisms (sshd, ppp, samba or what ever you have in / | ||
+ | |||
+ | < | ||
+ | vi / | ||
+ | </ | ||
+ | |||
+ | and append this to the file sshd: | ||
+ | |||
+ | < | ||
+ | auth required pam_google_authenticator.so | ||
+ | </ | ||
+ | |||
+ | |||
+ | You can disable the 2-factor login by appending these two lines: | ||
+ | |||
+ | < | ||
+ | auth [success=1 default=ignore] pam_access.so accessfile=/ | ||
+ | auth | ||
+ | </ | ||
+ | |||
+ | In the file / | ||
+ | |||
+ | < | ||
+ | + : ALL : 10.0.0.0/24 | ||
+ | + : ALL : LOCAL | ||
+ | - : ALL : ALL | ||
+ | </ | ||
+ | |||
howtos/google_authenticator.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1