Xceed .NET Libraries Documentation
AcceptHostKey Property


Xceed.SSH.Client Assembly > Xceed.SSH.Client Namespace > HostKeyReceivedEventArgs Class : AcceptHostKey Property
Gets or sets a System.Boolean value that indicates whether the server's public key should be accepted or rejected by the client. Default is true.
Syntax
'Declaration
 
Public Property AcceptHostKey As Boolean
'Usage
 
Dim instance As HostKeyReceivedEventArgs
Dim value As Boolean
 
instance.AcceptHostKey = value
 
value = instance.AcceptHostKey
public bool AcceptHostKey {get; set;}
Remarks
When set to false, the component will stop the connection process and throw a RejectedSSHHostKeyException.
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

Reference

HostKeyReceivedEventArgs Class
HostKeyReceivedEventArgs Members