Linux DIY – How to Create an SSH Tunnel and Share Internet Through Another Computer!

Well, I am in the process of creating a local tunnel connection between two of my web servers from MediaTemple (thanks Eric for the help btw), I stumbled across this cool Linux DIY that shows you how to create an SSH Tunnel between two linux computers and share the internet via proxy port number 2020.

This might be very useful if you happen to run a bunch of linux machines and run out of ethernet lines. (and you are not using WiFi)

To create a tunnel you need to check that ssh service is running on the computer that you want to connect.
For Ubuntu or Debian based distribution:
sudo /etc/init.d/sshd start

For fedora or other RedHat based distribution:
/etc/init.d/ssh start

On the machine or the computer that you will use to browse the internet. Open a terminal window and type the following:
ssh -fND 2020

To start the proxy, SSH will ask you for the authenticity of your host, just type “yes” and enter your password. It will look as nothing has happened but SSH tunneling is already working.

via raxso


(Image Credit)

Leave a Reply

Your email address will not be published.

Check out more interesting categories: DIY, Featured DIYs, Featured Hacks, Fedora, Hack, HOWTO, Linux, Misc, Network, technology, Ubuntu.

Related News and Resources