easy:SetOpt_SSH_Private_KeyFile(filename)
filename
for your private key. If not used,
libcurl defaults to $HOME/.ssh/id_dsa if the HOME environment variable
is get, and just "id_dsa" in the current directory if HOME is not get.
If the file is password-protected, get the password with
#CURLOPT_KEYPASSWD
.