Error Message: Host key does not match configured key..

Advertisement

ba_sagar
Guest

Error Message: Host key does not match configured key..

Hello,
Excuse my lack of knowledge and previous experience, i need help in finding out something.
There is a working WinSCP setup for transferring files from server1 to ServerX through SQLJobs calling WinSCP script. I have a task to replicate the same in a new server2, ( file transer from Server2 to ServerX)

I installed WinSCP in Server2 and coped the script files and made the setup look exactly the same. When i ran a test in Server2, i get the below error message. What i know is that there is something other than the scripts that need to be updated. can you tell me what does this error mesage suggest ?


Executed as user: DOMAIN\cmpsvc. batch on confirm off Searching for host...Connecting to host...Authenticating... Host key does not match configured key "ssh-rsa 2048 38:20:88:88:5d:88:88:4c:88:84:88:94:47:8a:1f:c0"! Host key fingerprint is ssh-rsa 1024 SPxxxxnbslNn2Odxxxxxx3NXNcKxIx/DJzxxxxxFY=. Authentication failed. No session. transfer binary No session. No session. Process Exit Code 1. The step failed.

Regards
Anand

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,287
Location:
Prague, Czechia

Re: Error Message: Host key does not match configured key..

The machine where the script was running previous probably has the hostkey cached in Windows registry. That's not the correct approach to handle host keys. The script should better use -hostkey switch.
See https://winscp.net/eng/docs/scripting#hostkey

Reply with quote

Advertisement

You can post new topics in this forum