Skip to content

Function: knownHosts() ​

ts
function knownHosts(content): HostKeyVerifier;

Defined in: netconf/src/transport/host-keys.ts:107

Verify against OpenSSH known_hosts content. Supports plain and hashed (|1|…) host entries, [host]:port entries, */? wildcards, ! negation, and @revoked markers. @cert-authority lines are ignored.

Parameters ​

content ​

string

Returns ​

HostKeyVerifier

Released under the MIT Licence.