New to scripting – cannot get connection to work

Advertisement

Monty30381
Joined:
Posts:
1

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.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum