Skip to content

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

Terminal window
usbipd.exe list

Take note of the BUSID of the desired (smartcard) device.

Then simply execute

Terminal window
usbipd.exe bind -b BUSID

replacing BUSID with the one you took note of earlier.

Now the only thing left to do is attaching the smartcard to WSL

Terminal window
usbipd.exe attach -w -b BUSID

You can even have it auto-attached with

Terminal window
usbipd.exe attach -w -a -b BUSID