Re: Pagent 'passphrase' failure where WinSCP started from a Service
You cannot use Pageant for this.
Pageant is intended for an interactive human use, not for automation.
See also https://winscp.net/eng/docs/faq_scheduler
Use
https://winscp.net/eng/docs/faq_passphrase#automating
Pageant is intended for an interactive human use, not for automation.
See also https://winscp.net/eng/docs/faq_scheduler
Use
-passphrase
switch. Or remove the passphrase from the primate key altogether.
https://winscp.net/eng/docs/faq_passphrase#automating