MyNixOS website logo
option

programs.ssh.knownHosts.<name>.publicKey

The public key data for the host. You can fetch a public key from a running SSH server with the ssh-keyscan command. The public key should not include any host names, only the key type and the key itself.

Declarations
    Type
    null or string
    Default
    null
    Example
    "ecdsa-sha2-nistp521 AAAAE2VjZHN...UEPg=="