Discuss this help topic in SecureBlackbox Forum

SSH: Connect sockets and SSH server

TElSSHServer class is a low-level class that acts as a data processor. Sockets (or other transport channel) layer and threading is to be implemented by the separately. A separate instance of TElSSHServer is used for each incoming client connection.

Your application code should listen to incoming connection and accept it. Once new socket connection is available, the code should initialize and setup TElSSHServer.

When there's data available in the socket, the application code should call TElSSHServer.DataAvailable() method. TElSSHServer will fire OnReceive event to read the socket data. Application code should read the data from the socket and pass it to TElSSHServer. When the server has something to send to the client, it fires OnSend event. In the event handler the application code should write the data to the socket (or to the intermediate buffer for sending).

How To articles about SSH server

Discuss this help topic in SecureBlackbox Forum