ssh tunnel & http proxy through socks

Bruce Lu

October 15, 2019

ssh tunnel

    C: Requests compression of all data
    2: Forces ssh to try protocol version 2 only
    q: Quiet mode
    T: Disable pseudo-tty allocation
    n: Redirects stdin from /dev/null (actually, prevents reading from stdin)
    N: Do not execute a remote command (doesn't open the shell)

curl through http proxy

  admin@~$cat .httpproxy
  export http_proxy=socks5://127.0.0.1:11111
  export https_proxy=$http_proxy

Chrome

Firefox and Safari

Enjoy