Thanks!
- klee@selco.org
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
-privatekey
and -passphrase
should go to the open
command, not put
. And the quotes for -privatekey
should be double too (or removed as they are not needed).
winscp.com /command "open sftp://username:""@site:22/ -privatekey=""E:\Key\SSH_Key.ppk"" -passphrase=""the passphrase""" "get /outgoing/file.pgp C:\TEMP\file.pgp" "exit"
winscp.exe SITENAME /passphrase="The passphrase" /command "get /RemoteFile.txt.pgp LocalPath.txt.pgp" "exit"
passphrase
(the syntax is the same as with the -privatekey
):
-passphrase=""the passphrase""
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"