I'm writing something in R which needs to upload a file to a server using SSH key authentication. I'm using the below code from the RCurl package, but the private key I'm using has a passphrase. For the life of me, I can't figure out how to specify the passphrase for the key. Has anyone got experience of using the ftpUpload function, or possibly has a better way of doing this in R?
ftpUpload(what = pathtofile,
to = serverlocation,
verbose = TRUE,
.opts = list(
ssh.private.keyfile = pathtokey
))