cURL / Mailing Lists / curl-library / Single Mail

curl-library

SSH private key: how to specify account ?

From: Stephen Collyer <scollyer_at_netspinner.co.uk>
Date: Wed, 12 Mar 2008 09:49:09 +0000

If I'm using an SSH private key file, by setting
CURLOPT_SSHKEY_PRIVATE_KEYFILE, how do I indicate the
account with which this is associated ? Do I have to
set CURLOPT_USERPWD to do this ? i.e.

> curl_easy_setopt(curl_, CURLOPT_SSH_AUTH_TYPES, CURLSSH_AUTH_PUBLICKEY);
> curl_easy_setopt(curl_, CURLOPT_SSHKEY_PRIVATE_KEYFILE, ssh_keypath_);
> curl_easy_setopt(curl_, CURLOPT_USERPWD, "fred:");

Or am I confused ?

-- 
Regards
Steve Collyer
Netspinner Ltd
Received on 2008-03-12