Table of Contents

Class SshAuthenticationException

Namespace
SshSharp
Assembly
SshSharp.dll

The server refused every authentication method that was tried.

public sealed class SshAuthenticationException : SshException, ISerializable
Inheritance
SshAuthenticationException
Implements
Inherited Members

Constructors

SshAuthenticationException(string, IReadOnlyList<string>)

Creates an exception.

SshAuthenticationException(string, IReadOnlyList<string>, IReadOnlyList<SshAuthenticationAttempt>)

Creates an exception that lists the attempts made.

Properties

AllowedMethods

The methods the server still accepts (from its last USERAUTH_FAILURE), for example publickey.

Attempts

Each authentication attempt, in order, and what became of it: every key offered (by fingerprint), each password and keyboard-interactive try, and the methods whose credentials were set but that the server did not offer. The none request that opens authentication is not listed. Like the message, it holds no password, answer or user name, so it can be logged.