Table of Contents

Delegate HostAuthentication

Namespace
Tmds.Ssh
Assembly
Tmds.Ssh.dll

Delegate for authenticating host keys.

public delegate ValueTask<bool> HostAuthentication(HostAuthenticationContext context, CancellationToken cancellationToken)

Parameters

context HostAuthenticationContext

The host authentication context.

cancellationToken CancellationToken

Token to cancel the operation.

Returns

ValueTask<bool>

true to accept the host key, false to reject.