Discuss this help topic in SecureBlackbox Forum
Use simple local port forwarding classes
Simple local port forwarding components (TElSSHLocalPortForwarding and related classes) allow you to quickly build a powerful and secure SSH-driven traffic forwarding solution. Simple port forwarding classes are extremely high-level and encapsulate all networking and routing functionality internally.
This type of port forwarding is used to secure outgoing client connections. Your port forwarding client opens a local listening socket. The communication client is told to connect not to the communication server, but to the locally opened socket. When the communication client connects, port forwarding client sends a request to the SSH server and tells the SSH server to connect to remote address of the communication server. After the SSH server establishes the connection, you have a secure tunnel between the local communication client and remote communication server.
To build your own local port forwarding application, do the following:
It makes sense to handle events published by the forwarding object to keep yourself notified about connection progress and any issues. Particularly useful to handle are OnError, OnAuthenticationFailed and OnAuthenticationSuccess events. OnConnectionXYZ events (e.g. OnConnectionOpen) let you track the opening/closure of particular forwarded connections.