CURLOPT_SSH_AUTH_TYPES(3) curl_easy_setopt options CURLOPT_SSH_AUTH_TYPES(3)NAME
CURLOPT_SSH_AUTH_TYPES - set desired auth types for SFTP and SCP
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSH_AUTH_TYPES, long bitmask);
DESCRIPTION
Pass a long set to a bitmask consisting of one or more of CURLSSH_AUTH_PUBLICKEY, CURLSSH_AUTH_PASSWORD, CURLSSH_AUTH_HOST,
CURLSSH_AUTH_KEYBOARD and CURLSSH_AUTH_AGENT.
Set CURLSSH_AUTH_ANY to let libcurl pick a suitable one. Currently CURLSSH_AUTH_HOST has no effect. If CURLSSH_AUTH_AGENT is used, libcurl
attempts to connect to ssh-agent or pageant and let the agent attempt the authentication.
DEFAULT
None
PROTOCOLS
SFTP and SCP
EXAMPLE
TODO
AVAILABILITY
CURLSSH_AUTH_HOST was added in 7.16.1, CURLSSH_AUTH_AGENT was added in 7.28.0
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO CURLOPT_SSH_HOST_PUBLIC_KEY_MD5(3), CURLOPT_SSH_PUBLIC_KEYFILE(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_SSH_AUTH_TYPES(3)
Check Out this Related Man Page
CURLOPT_SSH_PUBLIC_KEYFILE(3) curl_easy_setopt options CURLOPT_SSH_PUBLIC_KEYFILE(3)NAME
CURLOPT_SSH_PUBLIC_KEYFILE - set public key file for SSH auth
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSH_PUBLIC_KEYFILE,
char *filename);
DESCRIPTION
Pass a char * pointing to a filename for your public key. If not used, libcurl defaults to $HOME/.ssh/id_dsa.pub if the HOME environment
variable is set, and just "id_dsa.pub" in the current directory if HOME is not set.
If NULL (or an empty string) is passed, libcurl will pass no public key to libssh2, which then tries to compute it from the private key.
This is known to work with libssh2 1.4.0+ linked against OpenSSL.
The application does not have to keep the string around after setting this option.
DEFAULT
NULL
PROTOCOLS
SFTP and SCP
EXAMPLE
TODO
AVAILABILITY
The "" trick was added in 7.26.0
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_PRIVATE_KEYFILE(3), CURLOPT_SSH_AUTH_TYPES(3),
libcurl 7.54.0 December 21, 2016 CURLOPT_SSH_PUBLIC_KEYFILE(3)
Hi,
I got a unix script which copies a file from my AIX machine to a file server using SCP command. I am calling this script 3 times in my process after a time interval say 5mins. My issue here is like most of the time its not sending the file at the first time run while other 2 will work fine.... (10 Replies)
Hi,
I want to copy a file from one system to other i done a SCP but it showing error as below ..
Can we do it by SCP ? Is it possible ?.. What is the below mean ?.
sys1@sys2's password:
scp: .: not a regular file
Thanks,
Arun (4 Replies)
Hi ,
I am beginner in aix...
i am using the following command in my shell script to to copy the files from a secured server to my aix box...
/usr/local/bin/scp pickme@brad.wanted.com:../internal/mem_grp_details*
Should i use sleep command in my shell script for the script to copy the... (15 Replies)
Hi All,
I am having a scriptin that the SCP command is performed . The scp is transfering one file from one location to other.
But after SCP i see the file size is changed from original size . What might be the reason.
Thanks in advance,
Arunkumar (11 Replies)
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)
Hi All,
I am trying to take Bulk Log files from around 24 Remote servers using my shell script. I am using SCP for this. I need to take log files every 15 min, so I am thinking about the parallel processing mechanism in UNIX.The 24 remote machines username,servername reading from properties... (8 Replies)
Hi All,
I am a total noob to the Unix world, and i hope to learn a lot from this wonderful community. Here's my first post and question , i am trying to SCP a file to multiple servers (multiple destinations) through this little script :
#!/bin/ksh
# copy files
# File to be copied... (7 Replies)
Hi,
Does anyone know where i can find the Net::SCP module for Perl version 5.10. I want to install it onto my windows machine, via ppm. But i donīt have it on any current repository.
This is very important, that i install this soon.
Thanks,
Philip. (4 Replies)
Hi ,
I have a doubt reg SCP . For eg.. FileA is in host1 .Is it possible to receive fileA by logging to host2 using SCP.. Please let me know what is the major difference between scp and sftp.. We can use both for file transfer(correct me if am wrong) (4 Replies)
i have searched for cronjob, crontab tutorials but none seem to make any sense to me. needless to say i have never used this before. i need to download a product xml feed (images and descriptions) from a remote server and upload it to another server. this has to be done once a week. i was told that... (13 Replies)
Hi,
I'd like to seek your help in finding the cause of this problem. I utilize SCP command to transfer files from one server to another. I utilize the return code that SCP return so as to verify if transfer is ok or not. Below is a sample code that I created.
if scp... (9 Replies)
hi,
I am successfully running following command from command prompt
$ scp oracle@172.16.0.11:/back/crmemo.csv /sales/
but when i am running the same command from a script it copying '?' in sales (destination) folder.
Following is the script
#!/bin/sh
scp... (14 Replies)
Hi All,
I have to make an automated script that needs to do SFTP or SCP from my Unix server to another Unix server.
I have gone through search of this website for sftp and scp.
I really get confused when it talk about ssh key or rsh key and sftp -b thing
I would really appreciate if... (4 Replies)
Hi,
I am in the process of converting ftp transfres to SCP in my scripts.
Have some doubts with SCP command
1) currently script puts a list of ftp commands in afile and paasses the file to ftp as input
echo "user abc pwd" >inputfile
echo "ls *" >> inputfile
echo "quit" >> inputfile... (5 Replies)
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)