I have the following USB device installed on a Raspberry Pi running FreeBSD 13.1:
I would like to attach that device to a remote FreeBSD 13.1 server running as a virtual machine.
I have successfully done something similar with a Z-WAVE USB dongle for misc/openhab using net/socat and net/ser2net. However this question has nothing to do with OpenHAB.
I have tried the following.
On the Raspberry Pi:
On the remote virtual server:
The
I also tried using /dev/ukbd0 and /dev/uhid0 directly, but
Code:
# usbconfig -d ugen1.4 show_ifdrv
ugen1.4: <Yubico Yubikey 4 OTP+U2F+CCID> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (30mA)
ugen1.4.0: ukbd0: <Yubico Yubikey 4 OTP+U2F+CCID, class 0/0, rev 2.00/4.42, addr 4>
ugen1.4.1: uhid0: <Yubico Yubikey 4 OTP+U2F+CCID, class 0/0, rev 2.00/4.42, addr 4>
I would like to attach that device to a remote FreeBSD 13.1 server running as a virtual machine.
I have successfully done something similar with a Z-WAVE USB dongle for misc/openhab using net/socat and net/ser2net. However this question has nothing to do with OpenHAB.
I have tried the following.
On the Raspberry Pi:
socat tcp-l:3334,keepalive,reuseaddr /dev/ugen1.4
On the remote virtual server:
socat pty,link=/dev/ugen1.4,ignoreof,waitslave tcp:192.168.0.72:3334
The
usbconfig
command does not list it as a device:
Code:
# usbconfig
ugen0.1: <(0x15ad) UHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen1.1: <(0x15ad) EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.2: <VMware VMware Virtual USB Mouse> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA)
ugen0.3: <VMware, Inc. VMware Virtual USB Hub> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
I also tried using /dev/ukbd0 and /dev/uhid0 directly, but
ykman piv info
reports nothing found.