Skip to content

Type Alias: HostKeyPolicy ​

ts
type HostKeyPolicy = 
  | "insecure-accept-any"
  | string & object
  | readonly string[]
  | HostKeyVerifier;

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

How an SSH connection verifies the server's host key, given as hostKey: a SHA256: fingerprint or a public key line (or a list of them), a HostKeyVerifier such as knownHostsFile, or INSECURE_ACCEPT_ANY. Verification is mandatory, so one of these is required. See Host keys.

Released under the MIT Licence.