Table of Contents

Property AskHostKey

Namespace
SshSharp
Assembly
SshSharp.dll

AskHostKey

Asks the user whether to trust an unknown key in Ask mode; true trusts and records it. Without it, Ask behaves like Yes.

public Func<SshHostKeyPrompt, CancellationToken, ValueTask<bool>>? AskHostKey { get; init; }

Property Value

Func<SshHostKeyPrompt, CancellationToken, ValueTask<bool>>