pubkey.md (693B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: pubkey 5 Arg: <key> 6 Protocols: SFTP SCP 7 Help: SSH Public key filename 8 Category: sftp scp ssh auth 9 Added: 7.16.2 10 Multi: single 11 See-also: 12 - pass 13 Example: 14 - --pubkey file.pub sftp://example.com/ 15 --- 16 17 # `--pubkey` 18 19 Public key filename. Allows you to provide your public key in this separate 20 file. 21 22 curl attempts to automatically extract the public key from the private key 23 file, so passing this option is generally not required. Note that this public 24 key extraction requires libcurl to be linked against a copy of libssh2 1.2.8 25 or higher that is itself linked against OpenSSL. (Added in 7.39.0.)