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
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
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.