Method UnlockAsync
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
UnlockAsync(string, CancellationToken)
Unlocks an agent locked with LockAsync(string, CancellationToken) (ssh-add -X).
public Task UnlockAsync(string passphrase, CancellationToken cancellationToken = default)
Parameters
passphrasestringcancellationTokenCancellationToken
Returns
Exceptions
- SshException
The agent is not running, or the passphrase is wrong (AgentFailed).