Minimal SOCKS proxy over SSH.
$ bazel build cmd/straightforward
+-------------------+ +-------------------+ +---------------+
| | | | | |
| Local Machine +---> Remote SSH Server +---> Target Host |
| | | | | |
+----------+--------+ +-------------------+ +---------------+
|
SOCKS5 |
|
+----------+--------+
| |
| Any Application |
| |
+-------------------+
$ bazel run cmd/straighforward -- -i <SSH Private Key> -u <SSH User> -h <Destination SSH Server>:<Port> -p <Listen SOCKS Proxy Port>
You can use SOCKS5 proxy behind connection for SSH server (like ocproxy).
+-------------------+ +------------------+ +-------------------+ +---------------+
| | | | | | | |
| Local Machine +--->SOCKS5 Local Proxy+---+ Remote SSH Server +---> Target Host |
| | | | | | | |
+----------+--------+ +------------------+ +-------------------+ +---------------+
|
SOCKS5 |
|
+----------+--------+
| |
| Any Application |
| |
+-------------------+
$ bazel run cmd/straighforward -- -i <SSH Private Key> -u <SSH User> -h <Destination SSH Server>:<Port> -p <Listen SOCKS Proxy Port> -ocproxy <Local SOCKS Server>:<Port>