Tuesday, November 04, 2008

ssh tunnel

I always have to look this up:
ssh  steve@www.techtransfer.berkeley.edu -L 8888/localhost/8800
The parts:
ssh
the secure shell command
user@host
your account on the host to which you want to tunnel
-L
ssh forwarding (tunneling) flag
8888
local port (could be 8800 in this case, just needs to be unused on your machine)
localhost
your machine
8800
port on remote host
then in (for example) your browser, you can enter the address
127.0.0.1:8888
and get the page at
www.techtransfer.berkeley.edu:8800

Labels: , , , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home