Post a reply

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

Monty30381

New to scripting – cannot get connection to work

Hi Everyone,

Am new to scripting with WinSCP/FileZilla. I can make a connection work fine, using this:
winscp.com

open -Filezilla SiteName

And then do a synchronize local. That works fine. But when you try to script it...
Searching for host...

Connecting to host...
Authenticating...
Expected host key was not configured, use -hostkey switch.
Host key fingerprint is ssh-rsa 2048 <keyinfo>
Authentication failed.

I've tried to research and find the scripting for the key to be added in, can't do it. I've gone back to the standard script of opening with site name, username, password and still same problem...

So am trying to figure out what is wrong here... I can't create a site in WinSCP and have it find it to use that, can't get the FileZilla reference to work... am pulling my hair out.

What is the syntax to add the hostkey in as it doesn't work according to what the documentation shows.