Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
    Post Undeleted by sebasth
2 added 218 characters in body
source | link

You should be able to do this usingutilizing socat and ProxyCommand option for ssh. ConfigureProxyCommand configures ssh client to use proxy process for communicating with your server. socat to listen a port on localhostestablishes two-way communication between STDIN/STDOUT (socat and forward the traffic tossh client) and your UNIX socket:UNIX socket.

ssh -o "ProxyCommand socat TCP-LISTEN:1234,bind=127.0.0.1,reuseaddr,fork UNIX-CLIENT:/home/username/test.socksock" foo

You should be able to do this using socat. Configure socat to listen a port on localhost and forward the traffic to your UNIX socket:

socat TCP-LISTEN:1234,bind=127.0.0.1,reuseaddr,fork UNIX-CLIENT:/home/username/test.sock

You should be able to do utilizing socat and ProxyCommand option for ssh. ProxyCommand configures ssh client to use proxy process for communicating with your server. socat establishes two-way communication between STDIN/STDOUT (socat and ssh client) and your UNIX socket.

ssh -o "ProxyCommand socat - UNIX-CLIENT:/home/username/test.sock" foo
    Post Deleted by sebasth
1
source | link

You should be able to do this using socat. Configure socat to listen a port on localhost and forward the traffic to your UNIX socket:

socat TCP-LISTEN:1234,bind=127.0.0.1,reuseaddr,fork UNIX-CLIENT:/home/username/test.sock