Disable Yubikey from typing gibberish on Mac : r/yubikey
https://www.reddit.com/r/yubikey/comments/1k6k5pv/disable_yubikey_from_typing_gibberish_on_mac/
Long-pressing a Yubikey Nano will generate a 44-character random-looking string like "ccccccjlkgjlevtdernkbbnrrvhcvgbljgchbgbdbvgk" as an OTP token because it emulates a keyboard.
This is really annoying for Yubikey Nano, which you can leave plugged into your laptop at all times, and gets sporadically triggered by my lap, which my laptop sits on for a long time. I wanted to disable this.
Unfortunately, Yubikey Manager is deprecated, so the existing Reddit documentation doesn't help.
Instead:
- Install Yubikey Manager
- Click "Toggle Applications" (see https://imgur.com/a/rhvcPlE)
- Uncheck "Yubico OTP" (see https://imgur.com/a/rhvcPlE)
Yubico Authenticator App for Desktop and Mobile | Yubico
https://www.yubico.com/products/yubico-authenticator/
Use the Yubico Authenticator for Desktop on your Windows, Mac, or Linux computers to generate OATH credentials on your YubiKeys.
yubikey-manager
https://developers.yubico.com/yubikey-manager/
Python 3.10 (or later) library and command line tool for configuring a YubiKey. If you’re looking for a graphical application, check out Yubico Authenticator.
tl;dr: to disable the keyboard oops every time I hit the yubikey: brew install ykman && ykman config usb --disable otp