Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

tua32581

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

Thank you for the reply Martin. I was able to find the new host key fingerprint by connecting manually and going to Session -> Server / Protocol Information and copying the value for SHA-256.
https://winscp.net/eng/docs/ui_fsinfo
martin

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.
tua32581

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/