Setting up an SSH tunnel

On the machine example there is a (tcp/ip) program listening on port 12345. The protocol it talks is some plaintext language. I want to talk with it, but i don’t want others to know what i’m sending to it. I’m lucky enough to have remote access to that machine via ssh. I setup a tunnel with the following command:

ssh -N -L 12345:example:12345 timvw@example

Now my program can connect to localhost:12345 and ssh will make sure that it ends up at example.:12345 without others being able to see the actual data :) For windows users i suggest that you take a look at Plink.

This entry was posted on Thursday, January 19th, 2006 at 21:31 and is filed under Free Software. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

2 Responses to “Setting up an SSH tunnel”

  1. Marc says:

    So this is a SSH tunnel, not SSL.

  2. timvw says:

    You are absolutely right. I have modified the title and permalink from ssl tunnel to ssh tunnel.