Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlopt_ssh_private_keyfile(3) [mojave man page]

CURLOPT_SSH_PRIVATE_KEYFILE(3)				     curl_easy_setopt options				    CURLOPT_SSH_PRIVATE_KEYFILE(3)

NAME
CURLOPT_SSH_PRIVATE_KEYFILE - set private key file for SSH auth SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSH_PRIVATE_KEYFILE, char *filename); DESCRIPTION
Pass a char * pointing to a filename for your private key. If not used, libcurl defaults to $HOME/.ssh/id_dsa if the HOME environment vari- able is set, and just "id_dsa" in the current directory if HOME is not set. If the file is password-protected, set the password with CURLOPT_KEYPASSWD(3). The application does not have to keep the string around after setting this option. DEFAULT
As explained above PROTOCOLS
SFTP and SCP EXAMPLE
TODO AVAILABILITY
Added in 7.16.1 RETURN VALUE
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. SEE ALSO
CURLOPT_SSH_PUBLIC_KEYFILE(3), CURLOPT_SSH_AUTH_TYPES(3), libcurl 7.54.0 December 21, 2016 CURLOPT_SSH_PRIVATE_KEYFILE(3)

Check Out this Related Man Page

CURLOPT_KEYPASSWD(3)					     curl_easy_setopt options					      CURLOPT_KEYPASSWD(3)

NAME
CURLOPT_KEYPASSWD - set passphrase to private key SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_KEYPASSWD, char *pwd); DESCRIPTION
Pass a pointer to a zero terminated string as parameter. It will be used as the password required to use the CURLOPT_SSLKEY(3) or CUR- LOPT_SSH_PRIVATE_KEYFILE(3) private key. You never needed a pass phrase to load a certificate but you need one to load your private key. The application does not have to keep the string around after setting this option. DEFAULT
NULL PROTOCOLS
All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc. EXAMPLE
TODO AVAILABILITY
This option was known as CURLOPT_SSLKEYPASSWD up to 7.16.4 and CURLOPT_SSLCERTPASSWD up to 7.9.2. RETURN VALUE
Returns CURLE_OK if TLS enabled, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. SEE ALSO
CURLOPT_SSLKEY(3), CURLOPT_SSH_PRIVATE_KEYFILE(3), libcurl 7.54.0 December 21, 2016 CURLOPT_KEYPASSWD(3)
Man Page

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

auto SSH help, I did STFW/RTFF

logon to a client unix box as user "evil" > >su - hero enter evil's password >hero$> ssh-kengen -t dsa no passphase, id_dsa / id_dsa.pub generated. >hero$> scp /home/hero/.ssh/id_dsa.pub evil@scp_server:/tmp/id_dsa.pub now the scp_server, logon as evil >su - hero >hero>mv... (0 Replies)
Discussion started by: cititester
0 Replies

2. Shell Programming and Scripting

SFTP - Pass password auti

ftp -i -n <<HERE open $IPADD user $USRNAME $PASS cd / get $FNAME close quit HERE Hi all the above script i used for ftp. How to modify same for sftp? thanks in advance (10 Replies)
Discussion started by: bullz26
10 Replies

3. Shell Programming and Scripting

Rename .pub and private key

I wish to generate a id_dsa.pub and id_dsa (Public and Private Key) in a common user group. I have checked the .ssh directory and i have already found id_dsa.pub and id_dsa existing. Is that OK if i create both the keys in my home direcotry, rename it to jjj.pub and jjj and move to Common user... (1 Reply)
Discussion started by: vasuarjula
1 Replies

4. Shell Programming and Scripting

SFTP help

Hi Guys, I am able to create a file with all the sftp command required. I was able to ftp the files in the similiar fashion using ftp command. The following i used for ftp. ftp -n < $filename But when i try the same for Sftp. i am getting error. The file i am creating is in the... (9 Replies)
Discussion started by: mac4rfree
9 Replies

5. UNIX for Dummies Questions & Answers

SCP requests password despite common key

I created both a DSA and an RSA key for communication between two SSH servers. Each server has the same DSA and RSA key in their .ssh folders. Yet when copying files from one server to another using a client terminal, I get a password prompt. Why is that? What should I do to bypass the password... (18 Replies)
Discussion started by: SNorton
18 Replies

6. Shell Programming and Scripting

Passwordless SFTP - SCP Option?

I have read documentation on SCP and just trying to figure out how go about doing this - below are two pieces of code, one is SFTP and one is SCP. My goal is to have this done via password-less authentication, fully automated. Currently we use SFTP and the script asks for the password of the... (20 Replies)
Discussion started by: Stigy
20 Replies

7. UNIX for Dummies Questions & Answers

SFTP syntax without specifying private key location (no password)

Hi all, I need to connect using SFTP from Red Hat to Windows. Connection between servers work when I specify location of my private key in the script. However, I want to use syntax without private key location specified. I know this should work, as I found it in older scripts. Scripts were... (0 Replies)
Discussion started by: yavvie
0 Replies

8. Red Hat

SSH password less setup asking for password

Hello Experts, when I am trying to connect my target server through sftp after creating ssh password less setup, it is asking for passowrd to connect. to setup this I followed below process: -->generated keys by executing the command "ssh-keygen -t rsa" -->this created my .ssh directory... (9 Replies)
Discussion started by: Devipriya Ch
9 Replies