PowerTCP SSH and SFTP for .NET
HostKey Event




Raised when the server presents its hostkey while establishing a connection.
Syntax
'Declaration
 
Public Event HostKey As SshConnection.HostKeyEventHandler
'Usage
 
Dim instance As SshConnection
Dim handler As SshConnection.HostKeyEventHandler
 
AddHandler instance.HostKey, handler
public event SshConnection.HostKeyEventHandler HostKey
public: __event SshConnection.HostKeyEventHandler* HostKey
public:
event SshConnection.HostKeyEventHandler^ HostKey
Event Data

The event handler receives an argument of type HostKeyEventArgs containing data related to this event. The following HostKeyEventArgs properties provide information specific to this event.

PropertyDescription
HostKey Gets the host key being used by the SSH server.  
HostKeyAlgorithm Gets the host key algorithm being used.  
Verified Gets and sets a value that indicates the application has verified the host key.  
Remarks

Provides an opportunity for the client to verify the server, for example, using Domain Name System Security (DNSSEC) (see RFC 4255).

The HostKeyEventArgs.Verified property must be set to true to continue.

See the ComponentBase.SynchronizingObject property for important information on updating UI controls from within this event.

See Also

Reference

SshConnection Class
SshConnection Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic