Table of Contents

Property UpdateHostKeys

Namespace
SshSharp
Assembly
SshSharp.dll

UpdateHostKeys

Keep known_hosts in step with the host keys a server announces after authentication (OpenSSH's UpdateHostKeys): new keys are added once the server has proven it holds them, and this host's keys it no longer announces are removed. This lets a server rotate its keys without users seeing "host key changed". Only the first user file changes, only lines for exactly this host (not wildcard lines, not @cert-authority or @revoked ones), and connections authenticated with a host certificate are not used. Default false (UpdateHostKeys yes in ssh_config turns it on through FromConfig(SshHostConfig); see ConfirmHostKeyUpdate for ask).

public bool UpdateHostKeys { get; init; }

Property Value

bool