Skip to content

Instantly share code, notes, and snippets.

@mranallo
Forked from tekacs/show
Created April 20, 2011 19:34
Show Gist options
  • Save mranallo/932466 to your computer and use it in GitHub Desktop.
Save mranallo/932466 to your computer and use it in GitHub Desktop.
# Usage: show <local-port> <subdomain>
function show() {
DOMAIN=".tekacs.com"
REMOTE="$2$DOMAIN"
ssh -tR 1080:127.0.0.1:$1 vps "sudo ssh -Nl \$USER -L $REMOTE:80:127.0.0.1:1080 localhost"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment