How To Use Your VPS As A SSH Proxy

Looking for a simple, stable and significant VPS as your web hosting? Check out DigitalOcean, only $5 per month, and you can get $10 in credit just for signing up now.

If you have a VPS, you can use it to set up a VPN, whether PPTP, L2TP/IPSec or OpenVPN, instead, you can use your VPS as a SSH proxy directly to unblock the internet censorship.

The following will show you how to use your VPS as a SSH proxy in a very easy way:

I. Connect to your VPS

SSH VPS Terminal Connect

As mentioned before, for Windows, you need to install a SSH client (such as Tunnelier), and for Mac, you can also install a SSH client (such as Issh), but instead, you can just use the Terminal application to connect to your VPS and start the SSH tunnel by just entering the following command in the Terminal window:

ssh -N -D 7070 [email protected]

Remember to replace "" with the IP address of your own VPS, and press the "Return" key, then enter your VPS account password, if nothing appear as a result, you are done.

By the way, if you have created a VPN in your VPS, you can still use your VPS as a SSH proxy.


Although the above is the easiest way to connect to your VPS, you can only use the SSH yourself, unless you want to share your whole VPS account with others. So, to share a SSH account only with others, you can create a new and limited user with the following 4 steps:

1. Log in your VPS root

Open a Terminal window, and enter the following command:

SSH [email protected]

Remember to replace "" with your own VPS IP.

2. Create a group

Enter the following command:

groupadd internetfreedom

You can replace "internetfreedom" with any name you like.

3. Create a limited user

useradd -d /home/freenutsdotcom -m -g internetfreedom -s /bin/false freenutsdotcom

The above command will create a new SSH user "freenutsdotcom" in the "internetfreedom" group, and who can’t log in your VPS.

4. Create a password for the new user

Enter the following command:

passwd freenutsdotcom

You can enter any password (such as "123456") for the new user.

Now, you can share the username and password with your friends, who can then use your VPS SSH with the following command:

ssh -N -D 7070 [email protected]

Remember to replace "freenutsdotcom" with the new user, and "" with your own VPS IP.

II. Configure the browser’s network

After connecting to your VPS, you need to set the Socks proxy sever IP address to with port 7070 in your browser’s network settings. The following will you how to do that in Firefox and Chrome:

1. For Firefox

SSH proxy settings

In Firefox, you can find the above settings page with the following path:

Preference –> Advanced –> Network –> Settings

2. For Chrome

SSH Chrome Proxy Settings

In Chrome, you can find the above settings page with the following path:

Preference –> Under the Hood –> Network –> Change Proxy Settings

By the way, remember to leave HTTP, SSL, FTP and all the other proxy server configurations empty or unchecked.

Spread the love
This entry was posted in Free Online Anti-censorship Tools and tagged , , . Bookmark the permalink.