ExplodingPenguin.TV Linux Love, Microsoft Frustrations, and Other Geekery

22Jul/11Off

SSH Tunneling

SSH tunneling has been my favorite way to quickly tunnel to my home network over the years. The setup is incredibly simple, and if you have a Linux machine at your home or office, and use Linux on your travel computer, then you have very little to do to make this work.

The Linux machine on your home network needs openssh server installed. (Server distros usually ask if you want openssh installed initially or have it installed by default)

Forward the SSH port on your router/NAT device to the Linux box at home. (port 22 by default)

Now on the Linux notebook you only have to open a terminal and run your normal SSH command with the -D option.

Example:

ssh john@server -D 8080

This allocates a socket to listen to the local port you specify (in this example port 8080).

Then configure whatever application you want to use the tunnel, to a socks proxy pointing to the localhost at port 8080 (or whatever port you specified).

For example, you would setup Firefox to use the tunnel by going to Preferences>Advance>Networking>Conection Settings, and select Select SOCKS Host with 127.0.0.1 and port 8080 as the setting.

Share

Posted by John

Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.