Skip to content

Instantly share code, notes, and snippets.

@yaph
Created December 4, 2012 23:12
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaph/4210119 to your computer and use it in GitHub Desktop.
Save yaph/4210119 to your computer and use it in GitHub Desktop.
aliases for creating and killing an ssh tunnel using sshuttle
# http://coding.smashingmagazine.com/2012/10/29/powerful-command-line-tools-developers/
alias tunnel='sshuttle -D --pidfile=/tmp/sshuttle.pid -r <server> --dns 0/0'
alias stoptunnel='[[ -f /tmp/sshuttle.pid ]] && kill `cat /tmp/sshuttle.pid`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment