Created
May 3, 2019 12:11
-
-
Save DillionApple/60b7ce4177b1843d4186e1757d9b4475 to your computer and use it in GitHub Desktop.
Add this to your ~/.bash_profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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