我正尝试使用oathtool包中的PAM将s添加到sshd中。 我想要两种方式login到服务器:
到目前为止,我设法添加2FA到公钥authentication,但不知道如何join密码2FA。
我的sshd_config(OpenSSH_6.6p1,OpenSSL 1.0.1g 2014年4月7日):
AuthenticationMethods publickey,keyboard-interactive:pam password,keyboard-interactive:pam ChallengeResponseAuthentication yes PasswordAuthentication yes UsePAM yes
PAM sshd:
auth required pam_oath.so usersfile=/etc/users.oath window=30
但是这个configuration没有意义:当我尝试使用密码+ 2FAlogin时,我问了两次F2A(一次作为密码,第二次作为OATH。