Discuss this help topic in SecureBlackbox Forum


TElSimpleSSHClient     See also     

Filter: C#  VB.NET  Pascal  C++  PHP  Java  

This event if fired when server's public key is received and must be validated.


    event TSSHKeyValidateEvent OnKeyValidate;
    delegate void TSSHKeyValidateEvent(Object Sender, TElSSHKey ServerKey, ref bool Validate);

    Event OnKeyValidate As TSSHKeyValidateEvent
    Delegate Sub TSSHKeyValidateEvent(ByVal Sender As Object, ByVal ServerKey As TElSSHKey, ByRef Validate As Boolean)

    property OnKeyValidate : TSSHKeyValidateEvent;
    TSSHKeyValidateEvent = procedure (Sender: TObject; ServerKey : TElSSHKey; var Validate : boolean) of object;

    void get_OnKeyValidate(TSSHKeyValidateEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnKeyValidate(TSSHKeyValidateEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHKeyValidateEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHKeyHandle ServerKey, int8_t &Validate);

    TSSHKeyValidateEvent|callable|NULL get_OnKeyValidate()
    void set_OnKeyValidate(TSSHKeyValidateEvent|callable|NULL $Value)
    callable TSSHKeyValidateEvent(TObject $Sender, TElSSHKey $ServerKey, bool &$Validate)

    TSSHKeyValidateEvent getOnKeyValidate();
    void setOnKeyValidate(TSSHKeyValidateEvent Value);
    TSSHKeyValidateEvent.Callback OnKeyValidate = new TSSHKeyValidateEvent.Callback() {
        public void TSSHKeyValidateEventCallback(TObject Sender, TElSSHKey ServerKey, TSBBoolean Validate) {


  • ServerKey - Server's public key
  • Validate - Set this value according to result of key validation


    Handle this event to validate the server's public keys. Usually, known servers are identified by their public keys. Each server has a corresponding public key.

TElSimpleSSHClient will close the connection if you pass the False value in the Validate parameter.

See also:     TElSSHKey    

Discuss this help topic in SecureBlackbox Forum