Skip to content

Instantly share code, notes, and snippets.

@yaph
Created Dec 4, 2012
Embed
What would you like to do?
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