-
Notifications
You must be signed in to change notification settings - Fork 122
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
pcscd service must be started/restarted for ykman to access the yubikey #548
Comments
I don't really have a good answer here as I'm not very familiar with usbip-win. I would suggest trying some other tool than |
Same issue here. |
Just came back after almost 2 years to see if I can use my YubiKey 5C with WSL2 yet, and nope. There are a lot of WSL2 users out there nowadays and I bet quite a few would love to have native, non-hacky |
- YubiKey Manager (ykman) version: 5.0.1
- How was it installed?: https://github.com/Yubico/yubikey-manager#linux
- Operating system and version: Windows 11 & Ubuntu 20.04.1 LTS
- YubiKey model and version: Yubikey 5 NFC
- Bug description summary: After attaching the yubikey to WSL, the pcscd service must be started or restarted in order for ykman to access it.
Steps to reproduce
usbipd wsl list
to see a list of USB devices.usbipd wsl list
to see the key is connected.lsbusb
andykman list
to verify the device is not listedusbipd wsl attach --busid {BUSID}
whereBUSID
is the ID of the connected Yubikey.lsbusb
to verify it is connectedykman list
to see if the device is presentYubiKey [OTP+FIDO+CCID] <access denied>
and ykman will fail to access it.ykman oath accounts code
will result in the error: "Failed to connect to YubiKey"service pcscd status
sudo service pcscd start
sudo service pcscd restart
ykman list
and the Yubikey should be listed asYubiKey 5C NFC (5.2.7) [OTP+FIDO+CCID] Serial: 12345678
Expected result
I would expect ykman to ensure the
pcscd
service is started, restarted, or otherwise managed as needed when the Yubikey is attached to WSL via theusbipd wsl attach
command.Actual results and logs
I'm forced to manage the
pcscd
service manually after attaching the Yubikey to WSL.Other info
I don't know if this is a ykman issue or a usbipd-win project issue. Opening here to get feedback from Yubico team and community. There should be a more elegant way of dealing with this.
Links to other issues surrounding this problem:
The text was updated successfully, but these errors were encountered: