Add libusb support to WSL
Since previous one(https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/16759696-add-usb-device-support) was marked "complete", this one more clearly states support for libusb as in any usb device raw, rather than just storage mounting and serial pass-through.
My example need is Yubikey gpg-card.
Jonathan Freedman commented
Chiming in as someone else who would love to use their YubiKey for various things directly in WSL.
Nate Gardner commented
My example is a USB webcam.
Mahmoud Abduljawad commented
I was developing a python script that uses smartcards to authenticate specfic users actions, and my original plan was to keep the customer on their Windows with the support of WSL. Unfortunately I found out this is not possible as due to short support of libusb.
As so many other posts, my use case is with a YubiKey, which we use for ssh authentication. Within our organization we are split between people who run linux in a VM on Windows, and people who use Mac, both of which support OpenSSH with the YubiKey. Running Windows only to work in a VM is silly.
Jack Grigg commented
I also wish to use my YubiKey 4 in WSL, for signing git commits.
Need "raw" usb support for usb dongles, cameras and any other usb hardware device (other than usb2serial and usb storage which are already fixed) in order to access them with linux apps!
My priority is to use SDR usb devices (limesdr, rtl-sdr, etc) with linux tools.
Malhar Deshmukh commented
I need to use some AVR tools form bash. Which require access to USB devices. Please add libusb support to WSL.
Mark Edwards commented
Ditto - needed for ePass 2003 pkcs11 card. Would allow me to ditch a fedora VM running in VirtualBox for WSL. Until this is available, WSL will be nothing more than a curiosity for me.
Shawn Hoover commented
I support a library for a device that uses a custom USB driver on Windows and libusb on Linux. WSL works great in that role for a similar library that uses TCP. With Windows as the primary development OS, installing libusb in WSL and ditching the virtual machine for Linux testing would be ideal.
I also need the support of usb camera devices with WSL to get the direct Stream in some opencv program, for instance. Is there any temporary way to do?
Rohit Sant commented
I'd love to have this, since I'm trying to initiate a LIBUSB_BULK_TRANSFER with a stereo camera.
Andrey Lukyanov commented
Have same problem with using PKCS11 devices (smart cards) with WSL. Used for SSH connections to hosts with PIV authentication and PKCS11 tokens that are storing private keys securely.
$ ssh -I /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so user@hostname