Thursday, December 27, 2012

How to access any blocked website using ssh tunnel?

How much do you hate it when you're at work, school, college surfing the web, trying to access some website and you get prohibited, because "they" don't want you to see the content of just because you have some work to do and you shouldn't waste your time on Facebook.

Here in this post you will learn how to bypass the web filter using ssh tunnel in 3 extremely easy steps.

Don't be so hasty now, it's not the time for you to skip to the steps. First you have to know a little about ssh tunnels and firewalls.

Well, as shown clearly in the picture above all that an ssh tunnel do is connect to an online ssh server that allows SSH access and create a Tunnel between the host PC(ssh client) and server by bypassing the web Filter.

As for the firewall, well it is the sadistic son of a b*tch that is prohibiting you from accessing facebook. As you see in the picture below.
Or, as Wikipedia defines it: a software-based or hardware-based and is used to help keep a network secure. Its primary objective is to control the incoming and outgoing network traffic by analyzing the data packets and determining whether it should be allowed through or not, based on a predetermined rule set.

Now after I bored you to death with my babbling here is how you can access Facebook, Youtube, ..from your work place or school :

Sign up for a free bash ssh account on which is going to grant access to an online ssh server.
The Registration is so simple first you'll get an activation email then a second email to provide you with more information.

Now that you have a username and a password and the hostname you can connect to the server through an ssh client ( I recommend PuTTY).

The universal port of ssh is 22  but allow you to connect through another port 443.

After you're done with the configuration you go to the sessions page in the left pane and save the session.

Then you click on open, a terminal should open, you log in with your username and password.

Now the connection is established, all we have to do is o apply the proxy settings to our browser.
Now for this you need a browser that allows Manual Proxy settings via Socks.( meaning chrome and Firefox are just fine).
For this example I'm going to use Firefox.

 Tools -> Options ->Advanced -> Network -> Settings
 Manual Proxy Configuration and Fill the following details
   Socks Host:                Port : 8080
   Then choose SOCKv5

For Google Chrome follow these instructions : 
settings > show advanced settings

                       Network : change proxy settings
                       LAN Settings > use a proxy server for your LAN and click on Advanced.

 Socks Host:                Port : 8080

Enjoy your free surfing.

Learn how to set up your own ssh server.


  1. Accessing Twitter and facebook is banned in my School. After using lot of proxies and vpn software's finally i found "Hotspot Shield" VPN a reliable and convenient software. Now i can anonymously Access Twitter From School with 100% privacy.

  2. Yes thank you for spamming today, but here we are talking about accessing in a very secure connection to an ssh server that can be eventually hosted at your home (100% free.)

  3. Excellent. This saved my life. My silly bank website is not accessible from Europe :S

  4. Great, I'm happy that someone has actually profited from this post.

  5. This comment has been removed by a blog administrator.

  6. This comment has been removed by a blog administrator.

  7. Great tutorial it really works. By the way the connection is slow for you too or its just me?

    1. of course it's going to be slower since you're connecting through the cjb server

  8. I really Love this Post. But please, do you know any other free shell server? I would be grateful

  9. It said that the server unexpectedly closed the server. What am I doing wrong? Or is it their security thing?..

    1. You can access it from here --->

      PS:The link in the post has been updated.

  10. Hi, it sounds great, but after i click open and terminal appears, there is just blank black screen with green cursor and after while i receive error message "Network error: Connection timed out" So does it means i got blocked acces to putty communication?