Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide

This article is about Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide. So read this free guide, Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide step by step. If you have query related to same article you may contact us. So Lets begin this guide:

Guide: Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide

Today, data leaks, hacking and sniffing are common. Not a day goes by without news that a company’s database has been leaked or that the government is censoring or controlling a larger portion of the internet. And there is always a Nigerian prince who wants your help to release his million dollar fortune.

To protect your identity and other sensitive information from all this information, you need to secure your browsing, especially when using a public Wi-Fi network. The ideal solution is to use a VPN that we have already discussed in several cases.

Beware of pissed off IT admins | Shutterstock

But what if you are behind the firewall of the office, library or school? While VPN (sometimes) works, the services are paid and the free ones have dark sides. SSH tunneling is one of the alternatives to this, allowing you to bypass a restrictive firewall without getting caught.

back to menu ↑

What is SSH Tunneling?

SSH tunneling is a bit like VPN. With VPN, you connect to a VPN server and all your traffic is encrypted and routed through that server. The premise is the same, but instead of a VPN server, you have your home PC or router acting as a server for traffic routing and need a few more steps to install.

SSH settings 1The simple installation | Shutterstock

For readers who like technical details, the client side computer will connect to an SSH server over port 22. Most firewalls allow communication over port 22 as this is the port used by HTTPS and cannot decrypt what is sent over the HTTPS connection, as it is encrypted. SSH also uses the same port, so most firewalls allow this. I’m saying most of it because some really good people can still catch it, for which, read the warning below.

A warningBefore you start viewing network settings in your workplace, you should first review the policy on this. Depending on the company, you will at most receive a warning or the worst you will be firedIn addition, if you work in a business with sensitive work, such as a government department, bank or nuclear power plant, it is wise not to do this as it can lead to compromised security, which can lead to some of the aforementioned hacks. If an IT administrator decides to inspect, he or she will only see traffic flowing to and from your PC on port 22, but will not be able to see what the traffic is due to the encryption. So if you are caught and reprimanded for trying this, no fingers should be pointed at us.In addition, it is not guaranteed that this method will penetrate all firewalls. Most firewalls allow this because they cannot distinguish between an SSH and HTTPS package. But a really sophisticated firewall will even detect this and block the connection.

back to menu ↑

The server side: FreeSSHD

With a VPN connection you connect to a VPN server, in the same way with SSH tunneling you need an SSH server. Free SSH servers are available, but as our main concern here is security, it is not wise to entrust your data to an unknown entity. So we’ll sit down up a server on the home Pc. Hosting an SSH server doesn’t require strong guts, so any old or cheap PC will do the job. FreeSSHD, a free app used. Let’s set it up up

Step 1: Download and install FreeSSHD. At the end of the installation, select Yes for private keys and select No for Do you want to use FreeSSHd as the system service.

Private Keys Free Sshd

System service Free Sshd

Step 2: Open FreeSSHD and open the settings window by double clicking the icon in the taskbar. There should be a green check mark to indicate that the SSH server is active.

Server Status Free Sshd

Did you know? Speaking of firewalls, they’re not just for PCs and servers. There are also some excellent firewalls for your smartphone, which we recommend.

Step 3: Click the Users tab> Add to add a new user. In the newly opened window, enter the username of your choice. In Password, select Password saved as SHA1 hash from the drop-down menu and enter a password as desired. Check the boxes for Shell & Tunneling.

Add user Sshd for free

Step 4: Under the Encryption tab, select AES (128, 192 and 256 bits), then click the SSH and Tunneling tabs and adjust the options according to the images below.

Ssh Free Sshd1SSH tab settings

Tunneling Free SshdTunneling tab settings

back to menu ↑

The customer side: PuTTY

A client app is required to connect to the SSH server. For that we use the great and free PuTTY client app. It’s simple and requires no installation, perfect for work PCs that you usually can’t install programs on.

Download and open PuTTY. Under Host name, enter the IP address or host name of the PC running the SSH server, select SSH under Protocol, and click Open. A black window will appear asking you to enter the username. This means that the connection to the SSH server has been successful. Enter the username you set in step 3, followed by the password (which does not appear as you type).

Pu Tty Config

If you get a denied connection or a timeout error, follow the steps below to allow the port in the Windows firewall.

Open the Windows firewall (on the FreeSSHD server PC) and go to Advanced Settings. In the Advanced Settings window, click Inbound Rules> New Rule. Now follow the steps according to the below screenshots.

Port WfSelect Port for the rule type.

Port type Number WfSelect TCP and enter 22 for the port number.

Allow Connction WfSelect Allow the connection.

Networks WfCheck all three options.

If you still get a connection error then try to ping your SSH server from CMD. If you get a request timeout message, the firewall is most likely well protected and unfortunately there is nothing you can do.

back to menu ↑

Have you managed to break the barrier?

Are you enjoying a YouTube video from your office PC or are you still staring at Excel sheets? If you have any thoughts or doubts, please visit our discussion forums.

back to menu ↑

Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide: benefits

  • The Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide tutorial is free .
  • This guide already helps so many users follow up with interest in a timely manner.
  • The price of the Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide guide is free.

back to menu ↑


Tutorial summary of Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide

In this guide, we told you about the Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide; please read all steps so that you understand Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide in case if you need any assistance from us, then contact us.

How this tutorial helping you?

So in this guide, we discuss the Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide, which undoubtedly helps you.

What is actual time in which this method complete?

The time to complete the Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide tutorial is 10+ minutes.

What are the supported Device?

PC Laptop or Desktop

back to menu ↑

Final note

I hope you like the guide Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.

For our visitors: If you have any queries regards the Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide, then please ask us through the comment section below or directly contact us.
Education: This guide or tutorial is just for educational purposes.
Misinformation: If you want to correct any misinformation about the guide “Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide”, then kindly contact us.
Want to add an alternate method: If anyone wants to add more methods to the guide Set­up SSH Tun­nel­ing to Bypass a Firewall: Guide, then kindly contact us.
Our Contact: Kindly use our contact page regards any help. You may also use our social and accounts by following us on Whatsapp, Facebook, and Twitter for your questions. We always love to help you. We answer your questions within 24-48 hours (Weekend off).
Channel: If you want the latest software updates and discussion about any software in your pocket, then here is our Telegram channel.