I am trying to have a local Unix domain socket, say,
~/docker.sock. I want it to proxy everything to a remote Unix domain socket running elsewhere over SSH. (You can find a diagram of what I’m trying to do below).
ssh -R/var/run/mysql.sock:/var/run/mysql.sock -R127.0.0.1:3306:/var/run/mysql.sock somehost
But this is not how I want it to be like. It forwards the traffic that comes to the remote socket to my local socket (I want it the other way).