run this on both server1 and server2
netstat -lpn
and look for anything listening on those ports.
you need to make sure that port is available
on the local machine too.l
according to the man page you should also
specify bind address
-L [bind_address:]port:host:hostport
this example worked fine for me :
ssh -g -L 192.168.0.1:1919:192.168.0.2:31337 root@192.168.0.2
this listened on my local machine (192.168.0.1) on port 1919 to
remote server (192.168.0.2) running nc on port 31337
i could then telnet to port 1919 on 192.168.0.1 using my windows box
worked ok.


Reply With Quote
Bookmarks