Table of Contents

Enum DisconnectReason

Namespace
Renci.SshNet.Messages.Transport
Assembly
Renci.SshNet.dll

Provides list of disconnect reason as specified by the protocol.

public enum DisconnectReason

Fields

AuthenticationCanceledByUser = 13

SSH_DISCONNECT_AUTH_CANCELLED_BY_USER.

ByApplication = 11

SSH_DISCONNECT_BY_APPLICATION.

CompressionError = 6

SSH_DISCONNECT_COMPRESSION_ERROR.

ConnectionLost = 10

SSH_DISCONNECT_CONNECTION_LOST.

HostKeyNotVerifiable = 9

SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE.

HostNotAllowedToConnect = 1

SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT.

IllegalUserName = 15

SSH_DISCONNECT_ILLEGAL_USER_NAME.

KeyExchangeFailed = 3

SSH_DISCONNECT_KEY_EXCHANGE_FAILED.

MacError = 5

SSH_DISCONNECT_MAC_ERROR.

NoMoreAuthenticationMethodsAvailable = 14

SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE.

None = 0

Disconnect reason is not provided.

ProtocolError = 2

SSH_DISCONNECT_PROTOCOL_ERROR.

ProtocolVersionNotSupported = 8

SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED.

Reserved = 4

SSH_DISCONNECT_RESERVED.

ServiceNotAvailable = 7

SSH_DISCONNECT_SERVICE_NOT_AVAILABLE.

TooManyConnections = 12

SSH_DISCONNECT_TOO_MANY_CONNECTIONS.