Enum StrictHostKeyChecking
The StrictHostKeyChecking policy.
public enum StrictHostKeyChecking
Fields
AcceptNew = 2Accept and record unknown keys; refuse changed keys.
Ask = 0Ask the user about unknown keys (the OpenSSH default); refuse changed keys.
No = 3Accept and record unknown keys, and allow changed keys with a warning (
nooroff). 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'sLocalForward,RemoteForwardandDynamicForward, 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 = 1Refuse unknown and changed keys.