Automated job used to work but now says HOST KEY DOES NOT MATCH KEY FINGERPRINT

Advertisement

tua32581
Joined:
Posts:
2

Automated job used to work but now says HOST KEY DOES NOT MATCH KEY FINGERPRINT

I have an automated script that calls WinSCP from the command line and feeds in the hostname and credentials. This worked up until recently. I'm now getting an error that 'Host Key does not match key fingerprint'. I confirmed that I'm able to manually connect to the SFTP site (log attached). Here is the command I send to automate the request:

This is SAS -> calling command prompt -> calling WinSCP
C:\Progra~2\WinSCP\winscp.exe sftp://USER_NAME:P@ssW0rd!;fingerprint=ssh-rsa-j76osHAyyc1qPdtHOAPqowZMR59e9NG5UqCNtrGtm6M=@gfts.site.com/sub_dir/

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,034
Location:
Prague, Czechia

Re: Automated job used to work but now says HOST KEY DOES NOT MATCH KEY FINGERPRINT

As the message says, the your server's hostkey does not match anymore the fingerprint in your commandline.
Either your server got hacked. Or (more likely) it got reconfigured/reinstalled and the host key has been changed as part of that. Talk to your server administrator to verify this. If the change was legitimate, update the fingerprint in the commandline.

Reply with quote

Advertisement

You can post new topics in this forum