Chapter Four Part Three: How To Connect To SSH Tunnel

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.

When getting a free SSH tunnel, how to connect to it?

For Windows, you can install the "Tunnelier" software, and for Mac OS X, you can use "SSH Tunnel Manager", and of course, there will be some other softwares for you to do that.

No matter which software you are using, you possibly will need to enter the following 4 elements of your SSH tunnel account:

  • Server: such as "s4.alidage.org"
  • Username: such as "guest"
  • Password: such as "guest29080212737358"
  • Port: such as "22" as default.

The above example values are all for one of the Alidage.org SSH tunnel accounts, as what you can see from the following screenshot of SSH Tunnel Manager:

SSH Tunnel Manager

By the way, when using SSH Tunnel Manager, you will need to "Enable SOCKS4 proxy" and set the port as "7070".

Besides to use those softwares mentioned before, you can also open Terminal and connect to your SSH tunnel with the following one command line:

SSH -N -D 7070 [email protected]

For Windows, you can install the "Putty" software to run the above command, and for Mac OS X, you can open the Terminal application and enter the above commend directly.

And if you are not using Alidage's SSH tunnel, remember to replace "s4.alidage.org" with your SSH server, and replace "guest" with its username.

And if the SSH tunnel is still available, then you can enter the password and connect to it successfully, as what you can see from the following image:

How to connect to SSH tunnel

The above command line is for the default port 22, if your SSH server's port is 80 or something else, then you will need to add "-p 'port'" in the command line, such as:

SSH -N -p 80 -D 7070 [email protected]

When the connection is successful, you can open your browser and set the SOCKS Proxy Sever IP address to 127.0.0.1 with port 7070.

For Chrome browser, you can find the settings page via the following path:

Preference –> Show advanced settings –> Network –> Change Proxy Settings

Such as what you can see from the following image:

SSH proxy configuration

The above configuration will be also workable for Safari, and for Firefox, the configuration will be nearly the same, and you can find the proxy settings page via the following path:

Preference –> Advanced –> Network –> Settings

Spread the love
This entry was posted in E-book and tagged . Bookmark the permalink.