blob: 2078982e20336cccfde910440a8ba8c20a05e146 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: pubkey
4Arg: <key>
5Protocols: SFTP SCP
6Help: SSH Public key file name
7Category: sftp scp auth
8Example: --pubkey file.pub sftp://example.com/
9Added: 7.16.2
10See-also: pass
11Multi: single
12---
13Public key file name. Allows you to provide your public key in this separate
14file.
15
16(As of 7.39.0, curl attempts to automatically extract the public key from the
17private key file, so passing this option is generally not required. Note that
18this public key extraction requires libcurl to be linked against a copy of
19libssh2 1.2.8 or higher that is itself linked against OpenSSL.)