Last Updated: February 25, 2016
·
4.81K
· zhekanax

SSH proxy and tunnel

Socks proxy

ssh -CD 8080 [login@]ssh_host
  • 8080</code> local port to be listened
  • -C</code> compression

Tunnel

ssh -CL 8022:remote_host:22 [login@]ssh_host
  • 8022</code> local port to be listened
  • remote_host</code> localhost can be used too
  • 22</code> remote port
  • -C</code> compression