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

by max on Sunday, August 16th, 2009
No Comments
Share
Email Email

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 username@192.168.xxx.xxx

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

ssh-tunnel

(Image Credit)



More Resources


Leave a Reply

   Connect with Twitter
If you like this post then please subscribe to our full feed RSS or follow us on Twitter @Zedomax.

You can also subscribe by E-mail by filling out your name and E-mail below:

Name: Email:
Got a new hack, DIY, howto, or gadget you want us to blog about?

Tip us via Twitter @Zedomax or send e-mail to zedomax [at] gmail.com.

You can also use our free Guest Blogger services.

Try Goohack to find a new Hack:

Related News and Resources

?>

Other Interesting News From Our Friends


Featured Sites From Zedomax Blog Network