-
-
Save hanishassim/74ea664d39809f0e4feb1dbdbb923258 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