Topic "The server's host key not found in the cache. sporadic issue"

Author Message
Lalit Kukreja
[View user's profile]

Joined: 2014-12-03
Posts: 2
Location: Lalit Kukreja, India
Hi All,

The automated script is working in 6 out of 10 runs. Below are the messages that are received in success and failure scenarios.

================================================================
Success Message:
Executed as user: AccountName\UserID C:\Windows\system32>echo offbatch abort confirm off Searching for host...Connecting to host...Authenticating...Using username "UserID". Authenticating with pre-entered password.Authenticated. Starting the session...Reading remote directory...Session started. Active session: Other details
================================================================

Now the failure message:

Message
Executed as user: AccountName\UserID. C:\Windows\system32>echo offbatch abort confirm off Searching for host... Connecting to host...Authenticating... The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is. The server's rsa2 key fingerprint is: ssh-rsa XXXX xx:xx:xx:xx:xx:xx:xx:xx:xx:xx If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel. Continue connecting and add host key to the cache? (Y)es, (N)o, C(a)ncel, (C)opy Key: Cancel Host key wasn't verified! Host key fingerprint is ssh-rsa XXXX xx:xx:xx:xx:xx:xx:xx:xx:xx:xx Authentication failed.

Any help on this please?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
I assume the address you connect to load balances to two separate servers, each with a different host key.
You can specify multiple semicolon-separated hostkeys, like open -hostkey="key1;key2".
See http://winscp.net/eng/docs/scriptcommand_open
_________________
Martin Prikryl
Lalit Kukreja
[View user's profile]

Joined: 2014-12-03
Posts: 2
Location: Lalit Kukreja, India
Apologies for not being able to respond earlier than now.

Thank-you for your response.. I am still working with the other systems who own the server in question to get a confirmation regarding the point that you have highlighted above...

I should confirm it to you once I hear back from them.

Thanks again!! Smile
kyokum

Guest


Would that be coded
-hostkey="ssh-rsa 2048 key1;key2"
or
-hostkey="ssh-rsa 2048 key1;ssh-rsa 2048 key2"
??
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
kyokum wrote:
-hostkey="ssh-rsa 2048 key1;ssh-rsa 2048 key2"

This is correct.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License