Table of Contents

Method LoadAsync

Namespace
SshSharp
Assembly
SshSharp.dll

LoadAsync(string, CancellationToken)

Reads and parses an allowed-signers file.

public static Task<SshAllowedSigners> LoadAsync(string path, CancellationToken cancellationToken = default)

Parameters

path string
cancellationToken CancellationToken

Returns

Task<SshAllowedSigners>

Exceptions

FormatException

A line is malformed, or has an option this library does not know. As in ssh-keygen, one bad line rejects the file rather than being skipped.