Indeed, there's neither password nor key in your script. So no wonder that the script does not authenticate.
In any case, do not try to debug your batch file by running it from Windows Explorer. That way it's hard to spot any errors. Run the batch file from the Command Prompt –
See also https://winscp.net/eng/docs/troubleshooting#scripting
In any case, do not try to debug your batch file by running it from Windows Explorer. That way it's hard to spot any errors. Run the batch file from the Command Prompt –
cmd
. And enable logging in WinSCP (/log=...
).
See also https://winscp.net/eng/docs/troubleshooting#scripting