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
pathstringcancellationTokenCancellationToken
Returns
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.