Skip to content

Instantly share code, notes, and snippets.

@ddrscott
Last active November 10, 2017 19:32
Show Gist options
  • Select an option

  • Save ddrscott/b1ad213369e08338c94fc94506949953 to your computer and use it in GitHub Desktop.

Select an option

Save ddrscott/b1ad213369e08338c94fc94506949953 to your computer and use it in GitHub Desktop.
Example SSH reverse proxy
# 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