[omniORB] ssh port forwarding problem

Amir Shatil shatil at cwnt.com
Sun Jun 6 12:11:03 BST 2004


I'm trying to connect my corba (wondows/java) client (say its hostname is "C") with my corba (linux/C++) server (say its hostname is "S") via ssh (using port forwarding). 
The problem is that although the initial connection is established fine through ssh port forwarding - i.e. I have 1 socket between the client and the ssh client (C:x -- C:y), 1 socket between the ssh client and the ssh server (C:z--S:w) and 1 socket between the ssh server and the server (S:a--S:b), BUT after the first request-response massages, the client openes another direct connection to the server!!! I see that the client gets the actual hostname and port in the reply message and I guess it initiates another connection because the initial connetion details (hostname and port number - C:y) doesn't match the one it got in the reply message (S:b).

My question is: how can I prevent the (second) direct connection and continue use the initial encrypted-forwarded-ssh connection ? is there some switch/flag or can I get a pointer the the relevant file which should be revised ?

Thanks in advance

Amir Shatil





More information about the omniORB-list mailing list