Table of Contents

Constructor SshAuthenticationException

Namespace
SshSharp
Assembly
SshSharp.dll

SshAuthenticationException(string, IReadOnlyList<string>)

Creates an exception.

public SshAuthenticationException(string message, IReadOnlyList<string> allowedMethods)

Parameters

message string

A description.

allowedMethods IReadOnlyList<string>

The methods the server said it still accepts.

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

Creates an exception that lists the attempts made.

public SshAuthenticationException(string message, IReadOnlyList<string> allowedMethods, IReadOnlyList<SshAuthenticationAttempt> attempts)

Parameters

message string

A description.

allowedMethods IReadOnlyList<string>

The methods the server said it still accepts.

attempts IReadOnlyList<SshAuthenticationAttempt>

Each attempt and what became of it, in order.