Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DillionApple/60b7ce4177b1843d4186e1757d9b4475 to your computer and use it in GitHub Desktop.
Save DillionApple/60b7ce4177b1843d4186e1757d9b4475 to your computer and use it in GitHub Desktop.
Add this to your ~/.bash_profile
alias ssh_tunnel="networksetup -setsocksfirewallproxy Wi-Fi 127.0.0.1 30003 && ssh -D 30003 <host_username>@<host_ip> -p<ssh_port>; networksetup -setsocksfirewallproxystate Wi-Fi off"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment