SshSession.setHostKeyVerifier

void setHostKeyVerifier(SshHostKeyVerifier verifier)

Installs the host-key verifier consulted during the initial key exchange and on every rekey. No credentials are transmitted and no signer is invoked until the host key has been accepted.

Parameters

verifierApplication trust policy; null rejects every host key.