Using Passphrase in Command Line
I have a 3rd party vendor I'm trying to connect to via WinSCP, and I'll need to automate the process so I'm trying to figure out how to connect to this vendor using their Private key which requires a passphrase. I'm on version 6.3.7. I have able to connect to their SFTP site with the WinSCP GUI when I key in the passphrase, but I'm not having much luck through command line. Here's what I have now:
winscp.com /command "open sftp://username:""@site:22/" "get /outgoing/file.pgp C:\TEMP\file.pgp" -privatekey="E:\Key\SSH_Key.ppk" passphrase=""the passphrase"" "exit"