Skip to content

Variable: INSECURE_ACCEPT_ANY ​

ts
const INSECURE_ACCEPT_ANY: "insecure-accept-any" = 'insecure-accept-any';

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

Turns off host-key verification: any key the server presents is accepted, so nothing proves you are talking to the device you meant to, and anyone who can intercept the connection can read and change the session, credentials included. Each connection logs a warning to the logger given to ssh(), if there is one (connect({ logger }) doesn't receive it). Only for a lab or a first look at a device; pin its fingerprint or use known_hosts after that. See Host keys.

Released under the MIT Licence.