Table of Contents

Class SshAgentDestination

Namespace
SshSharp
Assembly
SshSharp.dll

One destination constraint on an agent key (OpenSSH's restrict-destination-v00@openssh.com, ssh-add -h): the key may be used to authenticate to To when reached from From; from this machine when From is null. A key used through agent forwarding needs a constraint for each hop: ssh-add -h jump -h "jump>dest" is two destinations. The agent enforces them through the session binding (session-bind@openssh.com) that ssh and SshSharp send.

public sealed record SshAgentDestination : IEquatable<SshAgentDestination>
Inheritance
SshAgentDestination
Implements
Inherited Members

Properties

From

The host the connection comes from (no user); null for this machine.

To

The host the key may sign in to, optionally as one user.

Methods

Parse(string, params KnownHostsFile[])

A destination as ssh-add -h takes it: [user@]host, or from>[user@]host for a hop from another host. Host keys come from knownHosts, as ssh-add looks them up: each matching key, and @cert-authority keys as authorities; @revoked keys are left out.