Class SshAgentKeyConstraints
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
Limits on a key added to an agent (AddKeyAsync(SshPrivateKey, SshAgentKeyConstraints?, CancellationToken)), as ssh-add -t and ssh-add -c set them.
public sealed record SshAgentKeyConstraints : IEquatable<SshAgentKeyConstraints>
- Inheritance
-
SshAgentKeyConstraints
- Implements
- Inherited Members
Properties
- Confirm
Whether the agent asks the user to confirm each use of the key (
ssh-add -c; OpenSSH's agent runs ssh-askpass).
- Destinations
Where the key may be used (
ssh-add -h, OpenSSH 8.9 and later): only to authenticate to these hosts, reached as listed. Empty (the default) for anywhere. The agent refuses the key elsewhere, including over agent forwarding to an unlisted host.
- Lifetime
How long the agent keeps the key (
ssh-add -t); null for as long as the agent runs. Whole seconds, at least one.