Re: Scripting Automation Does Not Work with SSH Keys
When you run the script manually, it authenticates using a key loaded from Pageant. When the script is run in Task Scheduler, it run in a different Windows session, which cannot access the Pageant in your user session. And if you run the script on different machine, it cannot work at all.
You need to explicitly specify the key in your script. Use
https://winscp.net/eng/docs/scriptcommand_open#privatekey
See also https://winscp.net/eng/docs/faq_scheduler
You need to explicitly specify the key in your script. Use
-privatekey
switch:
https://winscp.net/eng/docs/scriptcommand_open#privatekey
See also https://winscp.net/eng/docs/faq_scheduler