Apollo Connecting the World

Diligence and Intelligence

Archive for the ‘SSH Tunnel’ Category

SSH Tunnel in Linux

leave a comment »

It is easy in Windows to create SSH tunnel with the help of many tools (e.g. putty). How to do it in Linux? It is easier. 🙂

Suppose mike has an account on remote machine sshserver.com, which is used to be the one to connect.

Open an terminal, type command:
$ssh -N mike@sshserver.com -D 7070

Input the password, and now you have created the SSH tunnel. To use it as a proxy, just config your browser, add a socks 5 proxy, with the proxy as: “”.

OK, now you can surf the Internet with the proxy.


Some articles use -L parameter in the SSH commands, please refer to [1].

[1] http://blog.fredrikbostrom.net/2009/04/10/ssh-tunnel-from-the-command-line


Written by apollozhao

2011/07/01 at 11:45

Posted in Internet, Linux, ssh, SSH Tunnel

Tagged with , , , ,