Last active
November 10, 2017 19:32
-
-
Save ddrscott/b1ad213369e08338c94fc94506949953 to your computer and use it in GitHub Desktop.
Example SSH reverse proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1) Listen for data on 65000 | |
| nc -vv -kl 65000 | |
| # 2) In a new [session|tab|window|split], connect to `example.server` forwarding 65001 back to clients 65000 | |
| ssh -R 65001:localhost:65000 example.server | |
| # 3) Within 2's `ssh` session, send data to the client | |
| ls -al | nc localhost 65001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment