ssh 创建socks proxy上内网或者外网的方法


ssh -D  -CqNf @ [-p ]
  1. -D : open a SOCKS proxy on . If that port is taken, try a different port number. If you want to open multiple SOCKS proxies to multiple endpoints, choose a different port for each one.
  2. -C: compress data in the tunnel, save bandwidth
  3. -q: quiet mode, don’t output anything locally
  4. -N: do not execute remote commands, useful for just forwarding ports
  5. -f: make the command go to background
  6. @ [-p ]: the remote SSH server you have access to

Use SOCKS proxy in chrome / firefox.

相关