ssh tunneling while connected

3 views
Skip to first unread message

Mike Schrag

unread,
Apr 18, 2007, 4:39:00 PM4/18/07
to wot...@googlegroups.com
This is 99.44% non-wo-related, but if you use ssh port forwarding/
tunneling this is really cool. In a connected ssh session, you can
add additional forwarded ports by doing (at the start of any "line"):

~C-L2345:localhost:56789<enter>

~ = ssh escape char
C = "open commandline"
-L2345:localhost:56789 = just like that on commandline ... forwards
my local port 2345 to port 56789 of the remote machine

I've normally been too lazy to lookup the way to do this and would
just logout and reconnect with the -L on the commandline, so this is
kind of a handy thing to know.

ms

Reply all
Reply to author
Forward
0 new messages