Skip to content

Instantly share code, notes, and snippets.

@belo82
Last active November 30, 2017 22:52
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save belo82/242d7fdfe9a3253ebd08 to your computer and use it in GitHub Desktop.
Save belo82/242d7fdfe9a3253ebd08 to your computer and use it in GitHub Desktop.
SSH tunnel from local port 9200 to remote port 9200 (-f: run in background -N: don't execute command in remote system)
ssh -f -L 9201:localhost:9200 <username>@<host> -N
# To kill tunnel running in background run:
ps aux | grep 9201
kill <pid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment