Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5    Statistic    FMM    Blog  

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

Feedback: Report problem or ask question.


Start Chat