CentOS Stream 8 使用 Google Authenticator 登录验证

配置方式适用于CentOS 8 及 CentOS 7

[zhupengfei@centos-stream ~]$ sudo dnf install -y epel-* mercurial autoconf automake libtool pam-devel
[zhupengfei@centos-stream ~]$ sudo dnf install -y google-authenticator
[zhupengfei@centos-stream ~]$ sudo vim /etc/pam.d/sshd
auth required pam_google_authenticator.so
[zhupengfei@centos-stream ~]$ sudo vim /etc/ssh/sshd_config
ChallengeResponseAuthentication yes
[zhupengfei@centos-stream ~]$ sudo systemctl restart sshd.service
[zhupengfei@centos-stream ~]$ google-authenticator #配置 Google Authenticator向导
上一篇
下一篇