Table of Contents

Method GetKeysAsync

Namespace
SshSharp
Assembly
SshSharp.dll

GetKeysAsync(CancellationToken)

The keys the agent holds, ready for PrivateKeys. Keys of types SshSharp cannot authenticate with (DSA, for example) are left out.

public Task<IReadOnlyList<SshPrivateKey>> GetKeysAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<IReadOnlyList<SshPrivateKey>>

Exceptions

SshException

The agent is not running or did not answer as expected (AgentFailed).