Zero's Blog - 2023年1月 2023-01-26T16:56:00+00:00 Typecho https://l2dy.sourceforge.io/feed/atom/2023/01/ <![CDATA[YubiKey 禁用触摸输入 OTP 串]]> https://l2dy.sourceforge.io/2023/01/26/yubikey-disable-touch-otp-code.html 2023-01-26T16:56:00+00:00 2023-01-26T16:56:00+00:00 Zero https://l2dy.sourceforge.io/ 官方建议的禁用方式是将 OTP 输入程序切换到需要长按的 Slot 2,可以使用 YubiKey Manager 或 ykman otp swap 实现。

使用命令行切换后可以通过 info 命令验证是否切换成功。

$ ykman otp info
Slot 1: empty
Slot 2: programmed

注意 macOS 系统下需要给终端 app 开启 Input Monitoring 权限,并关闭 app 的 Secure Keyboard Entry(如有)。

]]>