Friday, November 10, 2006

SSH forwarding stuff

I allways forget the syntax of these commands. So, finally let's write it somewhere:

mybox> ssh -R 5555:local_box:8080 -l user_name some_host

Explanation:

local_box = the box I am sitting on (same as mybox)
5555 = the port, which will be opened on 'some_host' to map to 'local_box:8080'
8080 = as stated above, this is the port used on 'local_box', which we like to connect to from 'some_host'

Note: 'local_host' can be *any* host on the local side. It could be same as the one we are connecting from, or any other one on the network.

0 Comments:

Post a Comment

<< Home