Table of Contents

Enum StrictHostKeyChecking

Namespace
SshSharp.Config
Assembly
SshSharp.dll

The StrictHostKeyChecking policy.

public enum StrictHostKeyChecking

Fields

AcceptNew = 2

Accept and record unknown keys; refuse changed keys.

Ask = 0

Ask the user about unknown keys (the OpenSSH default); refuse changed keys.

No = 3

Accept and record unknown keys, and allow changed keys with a warning (no or off). As in ssh, a connection whose key has changed is not trusted: password and keyboard-interactive authentication (and so password changes), agent forwarding, and port forwarding (ssh_config's LocalForward, RemoteForward and DynamicForward, and the forwarding methods of SshClient) are disabled on it, so a man in the middle gets no password and no access to this side. Public key and GSS-API authentication still work.

Yes = 1

Refuse unknown and changed keys.