curl/docs/cmdline-opts/pubkey.md
Daniel Stenberg 6e494a2390
docs: more language cleanups
- present tense
- avoid bad words

Closes #13003
2024-02-27 16:19:43 +01:00

689 B

c SPDX-License-Identifier Long Arg Protocols Help Category Added Multi See-also Example
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. curl pubkey <key> SFTP SCP SSH Public key filename sftp scp auth 7.16.2 single
pass
--pubkey file.pub sftp://example.com/

--pubkey

Public key filename. Allows you to provide your public key in this separate file.

curl attempts to automatically extract the public key from the private key file, so passing this option is generally not required. Note that this public key extraction requires libcurl to be linked against a copy of libssh2 1.2.8 or higher that is itself linked against OpenSSL. (Added in 7.39.0.)