Created
April 4, 2015 17:28
-
-
Save robey/13d31584d5b25ee7b81a to your computer and use it in GitHub Desktop.
ssh socks proxy
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
# | |
# ssh supports socks proxy forwarding, built-in. | |
# | |
# on a mac, a socks proxy is setup in: | |
# System Preferences -> Network -> Advanced -> Proxies -> SOCKS Proxy | |
# chrome, at least, supports this by default. make sure, in "advanced settings", | |
# it says something like: | |
# "Google Chrome is using your computer's system proxy settings to connect | |
# to the network." | |
# | |
# you need a login on a unix shell account, so you can ssh and ask for socksiness. | |
# C compress | |
# 2 ssh2 | |
# q quiet | |
# T no tty | |
# n null -> stdin | |
# N no remote command | |
# D socks port | |
ssh -C2qTnN -D 8080 robey@blue.lag.net | |
# after that, localhost:8080 is your socks server. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment