2_factor_ssh_authentication_with_google_authenticator
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
2_factor_ssh_authentication_with_google_authenticator [2014/01/07 12:35] – admin | 2_factor_ssh_authentication_with_google_authenticator [2014/06/10 12:22] – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====Install and configure | + | {{tag> |
+ | |||
+ | =====Google Authenticator for SSH===== | ||
... on CentOS 6.5 | ... on CentOS 6.5 | ||
====Install required packages==== | ====Install required packages==== | ||
Line 13: | Line 15: | ||
====Configure SSHd==== | ====Configure SSHd==== | ||
- | | + | < |
- | | + | PubkeyAuthentication no |
- | PasswordAuthentication yes | + | PasswordAuthentication yes |
- | ChallengeResponseAuthentication yes | + | ChallengeResponseAuthentication yes |
- | UsePAM yes | + | UsePAM yes |
+ | # GSSAPI options | ||
+ | GSSAPIAuthentication no | ||
+ | GSSAPICleanupCredentials yes | ||
+ | # | ||
+ | # | ||
====Configure PAM SSHd==== | ====Configure PAM SSHd==== | ||
vi / | vi / | ||
Line 45: | Line 52: | ||
mv / | mv / | ||
+ | restorecon -Rv / | ||
====Restart SSHD==== | ====Restart SSHD==== | ||
service sshd restart | service sshd restart |
2_factor_ssh_authentication_with_google_authenticator.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1