dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleConnectionStringBuilder Class / SshStrictHostKeyChecking Property

In This Topic
    SshStrictHostKeyChecking Property
    In This Topic
    Indicates whether the host key is verified during establishing connection.
    Syntax
    'Declaration
     
    Public Property SshStrictHostKeyChecking As Boolean
    public bool SshStrictHostKeyChecking {get; set;}

    Property Value

    true, if the host key is verified during establishing connection; otherwise, false.
    Remarks

    The default value is false for compatibility with previous versions. It means that the verification of the server key, that was recieved during handshake when establishing connection is not performed. It is not recommended to use the default value, because this does not implement completely the SSH secure connection.

    When this option is set totrue, the server public key is verified. The verification is successful if the server key is identical to the key, supplied by user. This key should be specified in the SshOptions.HostKey property. If this property is not set or the keys are not equal, an exception is raised and connection is not established. You can use Devart.Data.Oracle.OracleConnection.SshHostKeyConfirmation to handle this scenario.

    You can get the public host key from system administrator. If you get only the fingerprint of the key, but not the key itself, you should subscribe for the Devart.Data.Oracle.OracleConnection.SshHostKeyConfirmation. The server key fingerprint and other properties will be available as the event handler parameters.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also