Ssh /
Tunnel
OpenSSH can offer a variety of tunnels. It's quite a small, available and fast tunnel toolbox. We assume your destination host is called potatobox and your username is always same with one in potatobox.
- DynamicForward
OpenSSH ships with a built-in socks5 server when called with -D argument. The server must allow it in sshd_config.
The following command creates a socks5 proxy available in localhost:1080, programs such as firefox or chromium can make use of this proxy, for programs that doesn't understand socks5 proxy, you may use proxychains:
$ ssh -D 1080 potatobox
Note that this proxy is not available to other hosts, since it's listening on localhost.
