[Bug 530] problems with port forwarding

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Apr 4 08:19:07 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=530





------- Additional Comments From samuel at bcgreen.com  2003-04-04 08:19 -------
Easy solution:

ssh my_host
  (login)
myhost% ssh -g -L 44000:other_host:22
(login again)


with the second ssh, you are forwarding the LOCAL port for my_host,
using the ssh client. which is quite legal to make a server port.   Job done.

Note: the connection between myhost and other_host is NOT being 
encrypted. You are simply using ssh as a port redirection tool 
at this poing. If you're connecting to an ssh demon on other_host, 
this isn't a problem. If you're doing pretty much anything else, 
you'd probably want to do:

my_host%  ssh -g -L 44000:localhost:25   other_host

That would forward an encrypted channel to other_host that then 
connects to it's port 25 locally.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-unix-dev mailing list