LinuxCommandLibrary

usbip

Use USB devices remotely.

TLDR

List all local USB devices and their bus ID's

$ usbip list --local
copy


Start a usbip daemon on the server
$ systemctl start usbipd
copy


Bind a USB device to usbip on the server
$ sudo usbip bind --busid=[bus_id]
copy


Load the kernel module required by usbip on the client
$ sudo modprobe vhci-hcd
copy


Attach to the usbip device on the client (bus ID is the same as on the server)
$ sudo usbip attach -r [ip_address] --busid=[bus_id]
copy


List attached devices
$ usbip port
copy


Detach from a device
$ sudo usbip detach --port=[port]
copy


Unbind a device
$ usbip unbind --busid=[bus_id]
copy

Copied to clipboard