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