-2

I have created a batch file to automate the download with WinSCP but it does not work. It is for sure a syntax error. Here is the script. Can you help m? Thanks

WinSCP.exe sftp://username:password@host/ -hostkey="xxxxxxxxx" -privatekey xxx.ppk

juanitowgm
  • 43
  • 2
  • 8

1 Answers1

2
WinSCP.exe sftp://username:password@host/ -hostkey="xxxxxxxxx" -privatekey=xxx.ppk

Just from browsing the documentation it looks like you forgot the = after the -privatekey parameter.