hostpubsha256.d 610 B

1234567891011121314151617
  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 host's
  14. public key. Curl refuses the connection with the host unless the hashes match.
  15. This feature requires libcurl to be built with libssh2 and does not work with
  16. other SSH backends.