Skip to content

Instantly share code, notes, and snippets.

@jdmichaud
Created May 16, 2017 19:56
Show Gist options
  • Save jdmichaud/da327ace639cd327174a3d7a5b2da934 to your computer and use it in GitHub Desktop.
Save jdmichaud/da327ace639cd327174a3d7a5b2da934 to your computer and use it in GitHub Desktop.
# From https://security.stackexchange.com/a/20539/148521
# On the server
nc -l -k localhost 9000
# On the client
ssh -f -L 10000:127.0.0.1:9999 [email protected] sleep 1; nc localhost 10000
# To send every character
stty -icanon && ssh -f -L 10000:127.0.0.1:9999 [email protected] sleep 1; nc localhost 10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment