Skip to content

Type Alias: SshAlgorithms ​

ts
type SshAlgorithms = { readonly [K in AlgorithmCategory]?: readonly string[] | SshAlgorithmEdit };

Defined in: netconf/src/transport/ssh.ts:177

The algorithms option. Per category, a list replaces the default, an SshAlgorithmEdit changes it, and an omitted category keeps it.

Example ​

ts
ssh({ host, username, password, hostKey,
  algorithms: { serverHostKey: { append: 'ssh-rsa' }, compress: ['none'] } });

Released under the MIT Licence.