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, and connections authenticated with a host
certificate are not used. As ssh, nothing changes when the connection's key was not already in a user file (a global file,
KnownHostsCommand, or AcceptNew on first contact), when a wildcard,
@cert-authority or @revoked line or one naming more than host,address applies to the host, or when a key
involved is also recorded under another name.
Default false (UpdateHostKeys yes in ssh_config turns it on through FromConfig(SshHostConfig); see
ConfirmHostKeyUpdate for ask).
public bool UpdateHostKeys { get; init; }