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

Ezz

Error by runnen from the Task Scheduler [Host key wasn't verified!]

[size=18]Hi All,

I am facing a problem with my script. I am running the below script from the Task Scheduler of windows and getting the following error:[/size]
[color=red](Exception) **Host key wasn't verified!**
Closing connection.
Sending special code: 12[/color]
[color=brown][color=red]
# no need for confirmation prompts where we're going
option confirm off

# the script on errors
option batch on

# connect to server
open sftp://username:passwordB@secureconnect.rooster.nl
SessionOptions.SshHostKeyFingerprint ="ssh-rsa 2048 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

# download all schedule files
get /outgoing/file/file*.csv C:\import\ -delete

# good bye
bye



[/color][/color]