Discuss this help topic in SecureBlackbox Forum

TElSSHClient class

Properties     Methods     Events     Declared in     Licensing     

This class is a descendant of TElSSHClass.


    TElSSHClient is used to add SSH support to client side of TCP connection (the client side is the side which initiates connection). To initiate connection call Open method. When there are encrypted data to be sent to the socket, TElSSHClient will fire OnSend event. When TElSSHClient needs data from the socket, it fires OnReceive event. If you use non-blocking mode, you can use DataAvailable method to tell TElSSHClient that there are some data in the socket that can be read.

To transfer data over the secure SSH connection the Tunnel objects are used. Each tunnel represents a type of logical connection ( Shell, Command, Subsystem, TCP-IP local forwarding, TCP-IP remote forwarding, X11 forwarding). The Tunnel object may create a number of TunnelConnection class instances. Each TunnelConnection carries single logical connection. For example, if you want to forward the connections, accepted by remote port to your machine, you have to create one instance of TElRemotePortForwardSSHTunnel, and for each accepted connection on the server side one instance of TElSSHTunnelConnection class will be created.

By default, TElSSHClient is allowed to work using both SSH1 and SSH2 versions and all encryption, public key, key exchange and MAC algorithms. You can disable or enable some of versions using Versions property and disable or enable security properties with EncryptionAlgorithms, PublicKeyAlgorithms, MacAlgorithms, KexAlgorithms and CompressionAlgorithms properties.

When connection is established, connection version can be read from Version property.

This component supports FIPS compliant mode. For more information, read the corresponding article.


Inherited from TElSSHClass


Inherited from TElSSHClass


Inherited from TElSSLClass

Declared in

  • Namespace: SBSSHClient
  • Assembly: SecureBlackbox.SSHClient
  • Unit: SBSSHClient
  • Package: SecureBlackbox.SSHClient.jar
  • sbsshclient.h


To use this class in the development and distribution of your software projects, you need to purchase one of the following licenses:

SecureBlackbox Professional, SecureBlackbox Standard, SecureBlackbox Lite

Discuss this help topic in SecureBlackbox Forum