Page 1 of 1

Basic Question on Client Connection

Posted: Thu 15 Dec 2011 04:06
by SteveHodges
This is my first day using the product and have been going through the manual. I am testing with the simpleSSHServer and SSHClient.

The client connects to the server, I tried to define port forwarding on port 80 and have tried 5060 (One of my target project ports). And the port forward starts, after pressing the create new connection it creates the connection for a second and then disconnects.

The client local side (From Host) is set to localhost(127.0.0.1)

Posted: Fri 16 Dec 2011 03:54
by SteveHodges
Ok... Further testing shows that if I send made the destination port 80 or 443 it keeps a connection. If I try any other port they do not stay connected. What are the rules around defined ports?

Posted: Fri 16 Dec 2011 13:23
by Dimon
If destination port is open and is listening for an incoming connection, like port 80 by http server, then connection stays open. But if server cannot connect to the destination port, then connection with SSH client is closed.

Posted: Fri 16 Dec 2011 15:25
by SteveHodges
Port 5060 and port 5061 are SIP Connections and you do not connect unless you have a call. How can we create a tunnel that is waiting on the TCP/UDP/TLS packet to transmit without connecting to the server. More like a pass-thru type connection

Posted: Tue 20 Dec 2011 10:48
by Dimon
In the local port forwarding mode, the TScSSHChannel component doesn't establish channel with SSH server until some incoming connection comes to the TScSSHChannel source port.