<PackageReference Include="SSH.NET" Version="2024.1.0" />

DisconnectReason

public enum DisconnectReason
Provides list of disconnect reason as specified by the protocol.
namespace Renci.SshNet.Messages.Transport { public enum DisconnectReason { None, HostNotAllowedToConnect, ProtocolError, KeyExchangeFailed, Reserved, MacError, CompressionError, ServiceNotAvailable, ProtocolVersionNotSupported, HostKeyNotVerifiable, ConnectionLost, ByApplication, TooManyConnections, AuthenticationCanceledByUser, NoMoreAuthenticationMethodsAvailable, IllegalUserName } }