After reading the readme I’m confused what the advantage is over just regular piping.
‘’’
command-on-server1 | ssh user@server2 'command-on-server2'
‘’’
On Receiving Server
ssh user@proxy socat UNIX-RECVFROM:/tmp/foobar -
And then on sending server ./foobar | ssh user@proxy socat - UNIX-SENDTO:/tmp/foobarGiven the current readme, I was left wondering the same as the GP too.
I mean, I'm not bashing beam, but it's mostly syntactic sugar, not something that provides some actual new functionality, is that right?
You can do this using a regular SSH server and some elbow grease. This is meant to be a simple setup and forget system that is relatively locked down and doesn't expose any more functionality than strictly necessary.
Example:
# receiver
ssh top-secret@ssh-j.com -N -R ssh:22:localhost:22
socat UNIX-RECV:/tmp/foobar - | my command
# sender
my-command | ssh -J top-secret@ssh-j.com ssh socat - UNIX-SENDTO:/tmp/foobar
(log in with your creds to receiver host, enjoy end-to-end encryption)