Topic "managing frequent hostkey changes"

Author Message
[View user's profile]

Joined: 2013-06-11
Posts: 1
Hi all,

I have a vendor that uses some kind of load balancer or hosted server solution and they frequently change servers/hostkeys with no notice. So my script breaks.

Is there a way to automate acceptance of the new hostkeys with no intervention? I use the -hostkey switch,

-hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"

but it's not clear if you have to specify each hostkey. I'd like to accept whatever hostkey they give us, as we get them. Am I stuck with reacting to these unexpected changes each time?

If it helps, I use the winscp.exe and am on version 4.3.5

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
If there's a set of servers (load balanced), the best solution is to list all hostkeys in the script (semicolon separated in the -hostkey switch).

If you cannot get list of all hostkeys, you can use -hostkey=* with the latest beta version. But you give up any security by doing this. Make sure you understand the implications.

You should upgrade in any case.
Martin Prikryl

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License