Table of Contents

Method FromConfig

Namespace
SshSharp
Assembly
SshSharp.dll

FromConfig(SshHostConfig)

The files, policy and hashing from a resolved ssh_config (UserKnownHostsFile, GlobalKnownHostsFile, StrictHostKeyChecking, HashKnownHosts), and the CA signature algorithms it trusts host certificates from (CASignatureAlgorithms, which can only narrow SshSharp's set; see CASignatureAlgorithms).

public static KnownHostsVerifier FromConfig(SshHostConfig config)

Parameters

config SshHostConfig

Returns

KnownHostsVerifier

Exceptions

SshException

CASignatureAlgorithms leaves no CA signature algorithm that SshSharp accepts (ConnectFailed).