Table of Contents

Property PasswordProvider

Namespace
SshSharp
Assembly
SshSharp.dll

PasswordProvider

Asks for the destination's password when authentication reaches it, at most NumberOfPasswordPrompts times (default 3); see PasswordProvider. Not called in BatchMode, when both PasswordAuthentication and KbdInteractiveAuthentication are no, or for a ProxyJump hop.

public Func<SshPasswordPrompt, CancellationToken, ValueTask<string?>>? PasswordProvider { get; init; }

Property Value

Func<SshPasswordPrompt, CancellationToken, ValueTask<string>>