Table of Contents

Method RemoveAllKeysAsync

Namespace
SshSharp
Assembly
SshSharp.dll

RemoveAllKeysAsync(CancellationToken)

Removes every key from the agent (ssh-add -D).

public Task RemoveAllKeysAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task

Exceptions

SshException

The agent is not running or refused (AgentFailed).