Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ykman otp : Failed to connect to the device on OSX Sonoma 14.1.1 #581

Open
justinpitts opened this issue Nov 28, 2023 · 3 comments
Open

Comments

@justinpitts
Copy link

  • YubiKey Manager (ykman) version: 5.1.1
  • How was it installed?: Package distro from github
  • Operating system and version: Sonoma 14.1.1 on a M1 Mac mini
  • YubiKey model and version: YubiKey 5C Nano (5.2.4) [OTP+FIDO+CCID]
  • Bug description summary: Encountered error 'ERROR: Failed to connect to the device' when attempting to update an OTP slot

Steps to reproduce

I ran the following command in zsh 5.9 in iterm 3.4.22

ykman --device 11501162 otp static -k US --no-enter 2

Expected result

ykman prompts me for a new value for the slot

Actual results and logs

WARNING: Failed opening device
WARNING: Failed opening device
WARNING: Failed opening device 
WARNING: Failed opening device
WARNING: Failed opening device
WARNING: Failed opening device
WARNING: Failed opening device
ERROR: Failed to connect to the device`

This is a persistent failure. I reproduce it every time I attempt it.

Other info

Iterm.app has been granted the Input Monitoring permission.
Upon encountering this error, I removed and re-added the Input Monitoring permission from Iterm.app
This functionality was previously working. I rotate this OTP password every 90 days, and have done so for this key at least 10 times. This may well be the first time I have done so since upgrading to Sonoma.

@justinpitts
Copy link
Author

I am able to update this OTP slot on this key on a different M1 Mac running Sonoma.

@rrotter
Copy link

rrotter commented Oct 11, 2024

You have to enable "Input Monitoring" for Terminal.app (or iTerm, or whatever terminal you're using).

System Settings -> Privacy & Security -> Input Monitoring

Credit: https://www.reddit.com/r/yubikey/comments/176l5is/is_anyone_else_having_issues_using_a_yubikey_with/

@ghost
Copy link

ghost commented Nov 15, 2024

yes I can't get PIV working either on Mac 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants