Duplex communication over Piping Server
Get executable binaries from GitHub Releases
Person A and B can communicate as follows.
Person A
piping-duplex aaa bbbPerson B
piping-duplex bbb aaa$ echo hello | piping-duplex aaa bbb
1
2
3
4
5
6
7
8
9
10Person B
$ seq 10 | piping-duplex bbb aaa | base64
aGVsbG8KNOTE: aGVsbG8K is base64-encoded "hello\n".
piping-duplex <upload path> <download path>Here is an example to use SSH over HTTPS via Piping Server.
In server host, type as follows.
socat 'EXEC:piping-duplex aaa bbb' TCP:127.0.0.1:22In client host, type as follows.
socat TCP-LISTEN:31376 'EXEC:piping-duplex bbb aaa'In another terminal in client host, type as follows.
ssh -p 31376 localhostYou can use passphrase-based end-to-end encryption with --symmetric or -c option.
piping-duplex -c aaa bbbYou can specify Piping Server with --server or -s option.
piping-duplex -s https://piping.glitch.me aaa bbb
OR
specify with $PIPING_SERVER environment variable as follows.
export PIPING_SERVER=https://piping.glitch.meDuplex communication over Piping Server
Usage:
piping-duplex [flags]
Flags:
-h, --help help for piping-duplex
-s, --server string Piping Server URL (default "https://ppng.io")
-c, --symmetric use symmetric passphrase protection
-v, --version show version