Class SshAgentHost
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
A host in an agent destination constraint (SshAgentDestination): its name, the user (for the destination only), and the host keys that identify it, or certificate authorities whose host certificates do.
public sealed record SshAgentHost : IEquatable<SshAgentHost>
- Inheritance
-
SshAgentHost
- Implements
- Inherited Members
Constructors
- SshAgentHost(string, IReadOnlyList<SshAgentHostKey>)
A host in an agent destination constraint (SshAgentDestination): its name, the user (for the destination only), and the host keys that identify it, or certificate authorities whose host certificates do.
Properties
- HostKeys
The keys that prove the host's identity (a copy of the list given).
- HostName
The host name, as the agent's session binding reports it (the name used to connect).
- UserName
The user the key may sign in as on this host; null for any user. Only a destination's To may name one.
Methods
- Equals(SshAgentHost?)
Equal when the name, the user and the keys (in order) are.
- GetHashCode()
Serves as the default hash function.