Re: Winscp Script for wth passphrase
I have solved this in an SSIS package that needs to transmit a file. In the package, I have created an Execute Process task to run WinSCP. I have created a variable in the package to store the private key's passphrase. As part of the command line arguments, I entered
In the session's script file, I have an
It is
Hope that helps.
/parameter // {passphrase}
In the session's script file, I have an
open
statement with the arguments -privatekey={privateKeylocation} -passphrase=%2
It is
%2
because it is the second /parameter
argument on my command line.
Hope that helps.