Forwards a remote iOS device, exposed via usbmuxd on Linux to a local macOS client.
The inverse (aka ssh -R) is left as an excercise to the reader, but shouldn't be too hard :)
This is basically a simple usbfluxd that only depends on socat.
Copy the bash script to a local file, say
fwd_ios.sh and make it executable with
chmod +x fwd_ios.sh.