Skip to content

Instantly share code, notes, and snippets.

@dkarlovi
Created June 9, 2025 15:04
Show Gist options
  • Save dkarlovi/709d5c4b96ec666fe3c5128100de771b to your computer and use it in GitHub Desktop.
Save dkarlovi/709d5c4b96ec666fe3c5128100de771b to your computer and use it in GitHub Desktop.
WSL Yubikey

Host, as admin

winget install gpg4win
usbipd list
usbipd bind --busid <bus ID, in my case 5-3>

Host, as regular user

gpg --card-status

# this one needs to be running constantly
usbipd attach --wsl --busid 5-3 --auto-attach --unplugged

WSL

# /etc/default/pcscd:
PCSCD_ARGS="--disable-polkit"
# /etc/udev/rules.d/10-yubikey.rules:
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0407", GROUP="wheel", MODE="0666"

Should now be working.

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