Optional
USB/IP
We simply need to install the usbipd-win
software on our Windows machine.
Make sure to reopen any shell/terminal and check that uspipd.exe
is available on your PATH
.
GUI
The process can be greatly simplified, by installing wsl-usb-gui (shortcut is called WSL USB) on the Windows side. You can do everything you desire from within the GUI, even set up auto attachments, without a hassle.
CLI
First, list available devices using
Take note of the BUSID
of the desired (smartcard) device.
Then simply execute
replacing BUSID
with the one you took note of earlier.
Now the only thing left to do is attaching the smartcard to WSL
You can even have it auto-attached with