如何解决Google Authenticator 2FA-Auth在openSUSE上无法正常工作
我目前正在尝试在openSUSE上通过SSH连接时实现以下目标:
$User Password (LDAP):
$2FA-Token (Google-Auth):
(请参阅我想要的图片) 在Debian下可以使用,但在openSUSE下只能在顺序相反的情况下使用,即先输入令牌再输入密码。如果我更改/etc/pam.d/sshd中的顺序,以便首先要求输入密码,则会跳过Google-Authenticator。这是什么原因,或者我做错了什么?为了更好地理解,我在下面发布了我的/ etc / ssh / sshd_config和/etc/pam.d/sshd。我正在使用openSUSE LEAP 15.2,希望能提供有用的答案!
thats how it looks when connecting to my Debian System via SSH
sshd_config :(仅我所做的更改)
ChallengeResponseAuthentication yes
UsePAM yes
AuthenticationMethods keyboard-interactive
sshd:
#%PAM-1.0
auth required pam_google_authenticator.so [authtok_prompt=token: ]
auth requisite pam_nologin.so
auth include common-auth
auth include password-auth
account requisite pam_nologin.so
account include common-account
password include common-password use_first_pass
session required pam_loginuid.so
session include common-session
session optional pam_lastlog.so silent noupdate showfailed
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。