TScSSHChannel is a component that serves as a data exchange interface for creating a logical connection through an SSH tunnel. Physically the secure connection is provided by an SSH client that can be assigned to the Client property.
When the Direct property is set to True, a connection to the specified DestHost and DestPort is established through a secure channel. To exchange data, you should use the ReadBuffer and WriteBuffer methods.
If the Direct property is not set, the component lets you forward data from one machine to another through an encrypted SSH tunnel. In this case the component is listening on the SourcePort on the local or remote host (depending on the Remote property) and forwards the received data to the specified DestHost and DestPort.
TScSSHChannel also supports dynamic port forwarding, i.e. obtaining the destination address dynamically at runtime. To enable dynamic port forwarding, set the Dynamic property to True.