Discuss this help topic in SecureBlackbox Forum

SSH: Initial setup of TElSSHServer

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.

At least the following events should be handled to make TElSSHServer work:

  • OnOpenConnection is fired when the incoming connection is established
  • OnSend is used when the class needs to to send outgoing data to the client
  • OnReceive is used to receive incoming data from the client
  • OnCloseConnection is fired when the logical connection is closed

Also at least one of the following events should be handled to provide any meaningful functionality to the connected clients:

  • OnOpenShell is fired when shell subsytem is requested by the client
  • OnOpenCommand is fired when command subsytem is requested by the client
  • OnOpenSubsystem is fired when other subsytem is requested by the client

How To articles about SSH server

Discuss this help topic in SecureBlackbox Forum