ssh port forward (reverse secure tunnel)
----------------------------------------
-L listen-port:host:port Forward local port to remote address
-R listen-port:host:port Forward remote port to local address
These cause ssh to listen for connections on a port, and
forward them to the other side by connecting to host:port.
[terrence@flabby terrence]$ nslookup flabby
Server: 137.111.66.5
Address: 137.111.66.5#53
Name: flabby.its.unimacq.edu.au
Address: 137.111.18.72
[terrence@flabby terrence]$ ssh -R 2222:flabby.its.unimacq.edu.au:22 terrence@oscar
terrence@oscar's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Tue Sep 13 18:41:30 2005 from flabby.its.unim
Sun Microsystems Inc. SunOS 5.6 Generic August 1997
[terrence@oscar terrence]$ /usr/sbin/nslookup oscar
Server: ns.unimacq.edu.au
Address: 137.111.66.5
Name: oscar.its.unimacq.edu.au
Address: 137.111.20.181
[terrence@oscar terrence]$ ssh -p 2222 localhost
terrence@localhost's password:
[terrence@flabby terrence]$
|