Table of Contents

Enum SshAuthenticationOutcome

Namespace
SshSharp
Assembly
SshSharp.dll

What became of one authentication attempt (see Attempts).

public enum SshAuthenticationOutcome

Fields

Declined = 5

This side gave up: KeyboardInteractive or PasswordProvider returned null, or the server's keyboard-interactive questions were not a single password prompt that Password could answer.

NoAcceptedAlgorithm = 3

The key has no signature algorithm the server accepts (its server-sig-algs), for example an RSA key and a server that lists no rsa-sha2-*, or none that PubkeyAcceptedAlgorithms (ssh_config's PubkeyAcceptedAlgorithms) allows. The key was not offered.

NotOffered = 2

The credentials for the method were set, but the server did not offer it (for example keys, and a server that takes only passwords). Nothing was sent.

PartialSuccess = 1

The server accepted it, but requires another method too (sshd's AuthenticationMethods).

PasswordChangeRequired = 6

The password was right but has expired, and was not changed: ChangePassword is not set or returned null, or the server refused every new password it was given.

Rejected = 0

The server refused it (SSH_MSG_USERAUTH_FAILURE without partial success): a wrong password, a key it does not know.

SigningFailed = 4

The server would accept the key, but the agent did not sign with it: the agent no longer holds it, or the user declined to confirm (ssh-add -c).

Unavailable = 7

The method could not be used on this side: no Kerberos ticket, or no GSS-API library or .NET 10 for gssapi-with-mic; or, for password and keyboard-interactive, the host key has changed and was accepted only because of No, so no password or answer is sent to the server (as ssh does). Nothing was sent.