Skip to content

Instantly share code, notes, and snippets.

@facundovictor
Last active June 19, 2017 01:23
Show Gist options
  • Save facundovictor/78b6e40b6c343a99f1cb4860c625ed9a to your computer and use it in GitHub Desktop.
Save facundovictor/78b6e40b6c343a99f1cb4860c625ed9a to your computer and use it in GitHub Desktop.
Easy VPN through SSH
#!/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