I was just playing with the idea of using curl to scp/sftp some of my files over to a remote box and was wondering how exactly to keep my passphrase to my private keys safe if I can't use an ssh-agent and can only use the key files themselves. My knowledge is that there really isn't a way to do this but I am hoping that I am wrong about this.
Edit: More description
I have generated ssh keys to log into my remote box, I have put a passphrase on the key, I want to use this key to log into the remote box with libcurl and setting CURLOPT_SSH_PRIVATE_KEYFILE to the proper key file, however I would then have to set CURLOPT_KEYPASSWD because I set a passphrase, which from what I understand would have to just plain text and that just doesn't seem very secure to me. Maybe its a non-issue?