Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 谷歌验证器2faauth不';无法在openSUSE上按预期工作_Linux_Openssh_Opensuse_Two Factor Authentication_Google Authenticator - Fatal编程技术网

Linux 谷歌验证器2faauth不';无法在openSUSE上按预期工作

Linux 谷歌验证器2faauth不';无法在openSUSE上按预期工作,linux,openssh,opensuse,two-factor-authentication,google-authenticator,Linux,Openssh,Opensuse,Two Factor Authentication,Google Authenticator,在openSUSE上通过SSH连接时,我目前正在尝试实现以下目标: $User Password (LDAP): $2FA-Token (Google-Auth): (见我想要的图片) 在Debian下,它可以工作,但在openSUSE下,它只在顺序相反的情况下工作,即首先是令牌,然后是密码。如果我更改/etc/pam.d/sshd中的顺序以便首先询问密码,则跳过Google验证器。原因是什么,或者我做错了什么?为了更好地理解,我在下面发布了我的/etc/ssh/sshd_config和/

在openSUSE上通过SSH连接时,我目前正在尝试实现以下目标:

$User Password (LDAP): 
$2FA-Token (Google-Auth): 
(见我想要的图片) 在Debian下,它可以工作,但在openSUSE下,它只在顺序相反的情况下工作,即首先是令牌,然后是密码。如果我更改/etc/pam.d/sshd中的顺序以便首先询问密码,则跳过Google验证器。原因是什么,或者我做错了什么?为了更好地理解,我在下面发布了我的/etc/ssh/sshd_config和/etc/pam.d/sshd。我正在使用openSUSE LEAP 15.2,希望您能给出有用的答案

sshd_config:(仅我所做的更改)

署方:

ChallengeResponseAuthentication yes

UsePAM yes

AuthenticationMethods keyboard-interactive
#%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