Table of Contents

Delegate PasswordPrompt

Namespace
Tmds.Ssh
Assembly
Tmds.Ssh.dll

Delegate for prompting the user for a password.

public delegate ValueTask<string?> PasswordPrompt(PasswordPromptContext context, CancellationToken cancellationToken)

Parameters

context PasswordPromptContext

The password prompt context.

cancellationToken CancellationToken

Token to cancel the operation.

Returns

ValueTask<string>

The password, or null to stop password authentication.