Summary

  • The author has a USB device attached to a computer out in the shop and wants to use it from their office.
  • While they could use remote desktop, they prefer to use SSH for this kind of task.
  • The Linux command line tool USBIP can be used to transport a USB device over the network.
  • The server component of this setup needs the kernel modules usbip_core and usbip_host, as well as the daemon usbipd and the client component needs the vhci_hcd module and the control program usbip.
  • One USB device can be bound to the server and connected to by one client, but cannot be shared further while the server has it.
  • The author uses a Raspberry Pi as a USB server, for which the setup is easy.
  • On the server, modules are loaded with modprobe -a, and on the client with modprobe -a vhci_hcd, with the daemon run with sudo usbipd.
  • The device is then bound and connected with sudo usbip bind/attach -b busid.

By Al Williams

Original Article