Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CURL.SetOptionSSHHostPublicKeySHA256

Sets the SHA256 hash of SSH server public key.

Component Version macOS Windows Linux Server iOS SDK
CURL 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionSSHHostPublicKeySHA256"; curl; value )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
value The new host key.

Result

Returns OK or error.

Description

Sets the SHA256 hash of SSH server public key.
Pass a string containing a Base64-encoded SHA256 hash of the remote host's public key. The transfer will fail if the given hash does not match the hash the remote host provides.

See also SSH_HOST_PUBLIC_KEY_SHA256 option in CURL manual.

See also

Release notes

Blog Entries

Created 22nd August 2022, last changed 22nd August 2022


CURL.SetOptionSSHHostPublicKeyMD5 - CURL.SetOptionSSHKnownHosts