Skip to content

Instantly share code, notes, and snippets.

@robey
Created April 4, 2015 17:28
Show Gist options
  • Save robey/13d31584d5b25ee7b81a to your computer and use it in GitHub Desktop.
Save robey/13d31584d5b25ee7b81a to your computer and use it in GitHub Desktop.
ssh socks proxy
#
# 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