xref: /aosp_15_r20/external/curl/docs/cmdline-opts/hostpubmd5.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: hostpubmd5
5*6236dae4SAndroid Build Coastguard WorkerArg: <md5>
6*6236dae4SAndroid Build Coastguard WorkerHelp: Acceptable MD5 hash of host public key
7*6236dae4SAndroid Build Coastguard WorkerProtocols: SFTP SCP
8*6236dae4SAndroid Build Coastguard WorkerAdded: 7.17.1
9*6236dae4SAndroid Build Coastguard WorkerCategory: sftp scp ssh
10*6236dae4SAndroid Build Coastguard WorkerMulti: single
11*6236dae4SAndroid Build Coastguard WorkerSee-also:
12*6236dae4SAndroid Build Coastguard Worker  - hostpubsha256
13*6236dae4SAndroid Build Coastguard WorkerExample:
14*6236dae4SAndroid Build Coastguard Worker  - --hostpubmd5 e5c1c49020640a5ab0f2034854c321a8 sftp://example.com/
15*6236dae4SAndroid Build Coastguard Worker---
16*6236dae4SAndroid Build Coastguard Worker
17*6236dae4SAndroid Build Coastguard Worker# `--hostpubmd5`
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard WorkerPass a string containing 32 hexadecimal digits. The string should be the 128
20*6236dae4SAndroid Build Coastguard Workerbit **MD5** checksum of the remote host's public key, curl refuses the
21*6236dae4SAndroid Build Coastguard Workerconnection with the host unless the checksums match.
22