Last active
June 19, 2017 01:23
-
-
Save facundovictor/78b6e40b6c343a99f1cb4860c625ed9a to your computer and use it in GitHub Desktop.
Easy VPN through SSH
This file contains hidden or 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
#!/bin/bash | |
LOCAL_PORT=8080 | |
REMOTE_SERVER=destination.server | |
REMOTE_USER=user | |
ssh -D $LOCAL_PORT -f -C -q -N $REMOTE_USER@$REMOTE_SERVER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment