24 lines
640 B
Markdown
Raw Normal View History

2024-05-15 15:20:32 -04:00
---
2023-12-11 20:30:44 -05:00
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: hostpubsha256
Arg: <sha256>
2024-05-15 15:20:32 -04:00
Help: Acceptable SHA256 hash of host public key
2023-12-11 20:30:44 -05:00
Protocols: SFTP SCP
Added: 7.80.0
Category: sftp scp
Multi: single
2024-05-15 15:20:32 -04:00
See-also:
- hostpubmd5
Example:
- --hostpubsha256 NDVkMTQxMGQ1ODdmMjQ3MjczYjAyOTY5MmRkMjVmNDQ= sftp://example.com/
2023-12-11 20:30:44 -05:00
---
2024-05-15 15:20:32 -04:00
# `--hostpubsha256`
2023-12-11 20:30:44 -05:00
Pass a string containing a Base64-encoded SHA256 hash of the remote host's
public key. Curl refuses the connection with the host unless the hashes match.
This feature requires libcurl to be built with libssh2 and does not work with
other SSH backends.