Last active
November 30, 2017 22:52
-
-
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)
This file contains 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
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