hostpubsha256.md (644B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: hostpubsha256 5 Arg: <sha256> 6 Help: Acceptable SHA256 hash of host public key 7 Protocols: SFTP SCP 8 Added: 7.80.0 9 Category: sftp scp ssh 10 Multi: single 11 See-also: 12 - hostpubmd5 13 Example: 14 - --hostpubsha256 NDVkMTQxMGQ1ODdmMjQ3MjczYjAyOTY5MmRkMjVmNDQ= sftp://example.com/ 15 --- 16 17 # `--hostpubsha256` 18 19 Pass a string containing a Base64-encoded SHA256 hash of the remote host's 20 public key. curl refuses the connection with the host unless the hashes match. 21 22 This feature requires libcurl to be built with libssh2 and does not work with 23 other SSH backends.