wodSSHServer ActiveX Control - ExitReason Property
      
 

Description

Holds reason for disconnection provided by remote side.


Property type

A ExitReasonsEnum enumeration.  


Syntax

object.ExitReason [= value]



The ExitReason Property syntax has these parts:

Part Description
object An expression evaluating to an object of type SSHUser.
value A ExitReasonsEnum enumeration, as described in settings.

Settings

The settings for value are:

Constant Value Description
 ReasonUnknown 0 Unknown reason.
 ReasonHostNotAllowedToConnect 1 Host not allowed to connect.
 ReasonProtocolError 2 Protocol error.
 ReasonKeyExchangeFailed 3 Key exchange failed.
 ReasonReserved 4 Reserved.
 ReasonMacError 5 Mac error.
 ReasonCompessionError 6 Compression error.
 ReasonServiceNotAvailable 7 Service not available.
 ReasonProtocolVersionNotSupported 8 Protocol version not supported.
 ReasonHostKeyNotVerifiable 9 Host key not verifiable.
 ReasonConnectionLost 10 Connection lost.
 ReasonDisconnectByApplication 11 Disconnect by application.
 ReasonTooManyConnections 12 Too many connections.
 ReasonAuthCancelledByUser 13 Authentication cancelled by user.
 ReasonNoMoreAuthMethodsAvailable 14 No more authentication methods available.
 ReasonIllegalUserName 15 Illegal user name.

Remarks

ExitReason property holds reason code provided by the client when he sent disconnect packet to close the connection. This packet is optional, and sent only by some clients. If set, wodSSHServer will put that code to ExitReason property, and text description the reason to ExitDescription property.

You should check this value in Disconnected event.