Table of Contents

Enum SshFailureReason

Namespace
SshSharp
Assembly
SshSharp.dll

Why an SSH operation failed.

public enum SshFailureReason

Fields

AgentFailed = 9

The SSH agent could not be reached, refused a request, or answered with something unexpected.

AuthenticationFailed = 4

User authentication failed.

ChannelClosed = 6

A channel was closed or refused.

ConnectFailed = 8

The network connection to the server could not be established.

ConnectionClosed = 5

The connection was closed, by the peer or because of an error.

HostKeyRejected = 3

The server's host key was rejected.

KeyExchangeFailed = 2

No common key exchange, cipher, MAC or host key algorithm.

ProtocolError = 1

The peer sent data that violates the SSH protocol.

SftpFailed = 11

An SFTP request failed with an error status from the server (see SftpException.Status).

Timeout = 7

An operation timed out.

TransferFailed = 10

A file transfer failed: an SCP transfer that the remote side reported an error in, or broke the protocol of, or an SFTP tree transfer that the remote tree made unsafe (too deep, or a name that would leave the target). A single SFTP request that the server refuses is SftpFailed.

Unknown = 0

An unspecified failure.