Discuss this help topic in SecureBlackbox Forum

TElSimpleSSHClient.Versions

TElSimpleSSHClient     See also     


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


This property specifies SSH versions which can be used during the connection

Declaration

[C#]
    TSSHVersions Versions;

[VB.NET]
    Property Versions As TSSHVersions

[Pascal]
    property Versions : TSSHVersions;
    TSSHVersions = set of TSSHVersion;

[C++]
    TSSHVersions get_Versions();
    void set_Versions(TSSHVersions Value);

[PHP]
    integer get_Versions()
    void set_Versions(integer $Value)

[Java]
    short getVersions();
    void setVersions(short Value);

Values:

TSSHVersions values

Description

    Set this property before calling the Open method. It should contain the set of SSH versions which can be used during the secure connection.

    Note, SSHv1 is vulnerable to the man-in-the-middle attack, so it must be used very carefully. We recommend you to use SSHv2 protocol if REALLY secure connection is required.

   Note, protocol version setting differs for VCL and .NET versions. To enable several SSH versions in .NET use bitwise OR operation, for example "sbSSH1 | sbSSH2".

    Example:  The following shows how to set the property for different SecureBlackbox editions:

[C#]
    TElSimpleSSHClient.Versions = SBSSHCommon.Unit.sbSSH1 | SBSSHCommon.Unit.sbSSH2

[VB.NET]
    TElSimpleSSHClient.Versions = SBSSHCommon.Unit.sbSSH1 Or SBSSHCommon.Unit.sbSSH2

[Pascal]
    TElSimpleSSHClient.Versions = sbSSH1 Or sbSSH2

See also:     Version    

Discuss this help topic in SecureBlackbox Forum