Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTstCustomSSHClient.ServerKeyOptions

property ServerKeyOptions;
The set of server host-key (signature) algorithms the client will accept and verify during ConnectToHost. Create registers the standard RSA/ECDSA/ Ed25519/Ed448 verification formats with no key, which accept whatever host key the server presents. Assigning a ServerXxxKey below replaces its own family's entries with entries holding the pinned key, and once any of them is assigned ConnectToHost drops every entry that holds no key, so only the pinned keys are accepted - for every algorithm, not only the pinned one's. Assigning a key registers entries but selects none: a name that was selected before the assignment and is registered by it stays selected, any other must be selected afterwards. Selecting AllOptionNames after assigning the keys is fine, since ConnectToHost drops the keyless entries from the selection as well.