Table of Contents

Method Parse

Namespace
SshSharp
Assembly
SshSharp.dll

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.

public static SshAgentDestination Parse(string specification, params KnownHostsFile[] knownHosts)

Parameters

specification string
knownHosts KnownHostsFile[]

Returns

SshAgentDestination

Exceptions

FormatException

The specification is malformed, or a host has no keys in knownHosts.