JLinX – Blog

Weblog von Jan Linxweiler

SSH Tunnel

Filed under: Apple & Mac OS X,Linux — Jannis at 9:26 pm on Tuesday, November 11, 2008

ssh -N -L 4001:destination.machine.de:3389 user@gateway.machine.de

Forward local port 4001 to gateway.machine.de, and tell him to send this to destination.machine.de, on port 3389

-N tells ssh to only handle tunnel, we do not want a shell on this host
-L specifies the kind of tunnel (Local port forwarding)
4001 is the local port to use
destination.machine.de is a host hidden by the firewall
3389 is the port you want to reach.
user is the user you want to connect as.
gateway.machine.de is the public server you will jump by.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.