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