Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Rookie mistake? WinSCP uploads when running a .bat manually but fails through task scheduler

The private key is protected. You have probably not specified the passphrase in the script.

Use -passphrase switch:
https://winscp.net/eng/docs/scriptcommand_open
Bourzti

Rookie mistake? WinSCP uploads when running a .bat manually but fails through task scheduler

Hi All,

I am new to WinSCP and scripting so please be kind :shock:

When running a .bat manually WinSCP loads the required files from our server to a customers server, however when running through Task Scheduler fails with the error message as below.

The customer now requires this to be running so a solution to this will be greatly appreciated.

Thanks

. 2017-04-27 16:44:33.125 Offered public key
. 2017-04-27 16:44:33.156 Offer of public key accepted
! 2017-04-27 16:44:33.156 Authenticating with public key "rsa-key-XXXXXXXX"
. 2017-04-27 16:44:33.156 Prompt (3, SSH key passphrase, , Passphrase for key "rsa-key-XXXXXXXX": )
. 2017-04-27 16:44:33.156 Disconnected: Unable to authenticate

WinSCP Version 5.5.6 (Build 4746) (OS 6.1.7601 Service Pack 1 - Windows Server 2008 R2 Standard)