2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-28 07:50:25 +08:00
|
|
|
Long: pubkey
|
|
|
|
Arg: <key>
|
|
|
|
Protocols: SFTP SCP
|
|
|
|
Help: SSH Public key file name
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: sftp scp auth
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --pubkey file.pub sftp://example.com/
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 7.16.2
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: pass
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2016-11-28 07:50:25 +08:00
|
|
|
---
|
|
|
|
Public key file name. Allows you to provide your public key in this separate
|
|
|
|
file.
|
|
|
|
|
|
|
|
(As of 7.39.0, 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.)
|