Wednesday, September 16, 2009

Create a SSH tunnel

This will allow you to tunnel traffic through a firewall.
Example tunnel Service Manager Client that uses port 32001

ssh -N -p 22 brent@183.40.33.34 -L 32001/localhost/32001

Here is the break down of the command:
  • ssh - the actual SSH commad
  • -N tells SSH we don't want to execute a remote command. Not terribly necessary, but makes it safer.
  • brent@183.40.33.34 - account and SSH host info. user name will at server 183.40.33.34
  • -L 32001/localhost/32001 This one creates the tunnel. It tells SSH to forward traffic from port 32001 on the local machine to port 32001 on the remote machine.

Now you can load up Service Manager and connect to localhost instead of 183.40.33.34

No comments:

Post a Comment