Post a reply

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)


Topic review


Re: WinSCP with Windows task schedule.

Start here
If you want out help, we need log files.
My wild guess is that your FTPS server does not have a certificate signed by a trusted authority, so the script fails because it does not contain fingerprint of the untrusted certificate. Note that with FTPS, you need -certificate with certificate fingerprint, not -hostkey (which is for SSH host key fingerprint).

WinSCP with Windows task schedule.

Hello everyone, I really need help on this.
I have a Task.bat that have this...
winscp.exe /script=SyncFromRM.txt

And a SyncFromRM.txt file with this...
#Resources Can be Found here -
option batch abort
option confirm off
open ftps:// -hostkey="ssh-rsa 2048 XX:5c:24:XX:06:36:XX:ba:c6:92:9c:67:2a:47:d8:f4:03:fe:64:61"
synchronize local C:\bloqueio_libera_user_RM /gerador_saida

(Of course i replaced the key here with XX)
My question is...
When I click on the .bat it works but when I create a task it doesn't.
Based on the above information how should I create the task?