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

ssh -D <local_port> -CqNf <user>@<remote_ip> [-p <port>]
  1. -D <local_port>: 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. @<remote_ip> [-p ]: the remote SSH server you have access to

Use SOCKS proxy in chrome / firefox.

posted @ 2022-02-13 17:01  逍遥叹wan  阅读(271)  评论(0编辑  收藏  举报