Back to product page

HostFingerprint method


Called when the remote server provides public key fingerprint information.

Type

None

Syntax

  • Basic
object.HostFingerprint    Owner, Fingerprint, Accept
The HostFingerprint(object,Owner,Fingerprint,Accept) syntax has these parts:
objectAn expression evaluating to an object of type wodTunnelNotify.
OwnerRequired. A wodTunnelCom object. Reference to the wodTunnelCom instance that called this notification method.
FingerprintRequired. A String value. Represents fingerprint information for the server.
AcceptRequired. A Boolean value. When set to False, wodSSHTunnel aborts the connection.

Remarks

This method is called only if you have implemented the IwodSSHTunnelNotify interface in your application and the wodTunnel1.Notification property has received a reference to an instance of your implementation.

Because the SSH architecture does not know about certificates or other means of checking if a remote server is really the one you intended to connect to, the decision to accept a connection or not is a matter of trust.

Fingerprint information locally. For each new connection, you should test that the Fingerprint information is the same as the stored value to be sure that no one is 'in the middle' spying on your connection. Fingerprint information is almost unique among servers and it is generated from a server's private key.

True (default), wodSSHTunnel will continue to perform negotiation with the server normally. If you set it to False (for example, because you see that the Fingerprint information is not the same as last time you connected to this server), it will drop the connection.

Fingerprint information. For example, SSH1 provides different FingerPrint information than the SSH2 service running on same computer and on same port.

Platforms

Windows