hostpubsha256.d 614 B

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