Beranda

Use Your SSH Connection as HTTP Proxy

Did you know SSH has an build in SOCKS server? You can use the machine you connect to as proxy!

Command

ssh -D 7070 -p22 user@your-server.com

What does it do?

The option “-D” opens a SOCKS port and tunnels it to the machine you are connected to.

How can I use it?

Go to the settings in your browser and look for proxy settings. Set as proxy server (Socks 5): 127.0.0.1 and port the port you defined with option “-D”, 7070 in above example.

That’s all, all your traffic from your browser is now tunneled though your SSH connection!

Source: usesshas_proxy.onlinephpfunctions.com.