我正在使用OTP Sharp的身份在asp.net mvc中实现2fa身份验证,以验证TOTP代码,始终在有效代码中出现错误
这是下面的操作代码
config.vm.provision "shell",inline: <<-SHELL
sed -i 's/Passwordauthentication no/Passwordauthentication yes/g' /etc/ssh/sshd_config
systemctl restart sshd.service
SHELL
当我输入由Google Authenticator移动应用获取的QR码时,它总是返回错误无效的代码。请采取任何解决方案。