Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

ahopkinson@holstein.ca

Host key keeps changing back and forth

Our client recently changed their host key on the SFTP site, normally I just login manually and grab the host key and update our script file. Now it keeps failing and telling me that I need a different host key, when I update the script, it tells me I need the value I just changed it from. Any ideas? Here is the error
 2024-11-11 13:23:56.511 ssh-rsa 2048 SHA256:EBgWXFfSgWCGqoUn6Qmfenqxxxxxxxxxx
< 2024-11-11 13:23:56.511 Script: Authenticating...
. 2024-11-11 13:23:56.511 Host key does not match configured key fingerprint ssh-rsa 2048 jSkTlLqgManAvukYFtUpjiNaQicEgJGd/jKIxxxxxx
. 2024-11-11 13:23:56.511 Attempt to close connection due to fatal exception:
* 2024-11-11 13:23:56.511 Host key fingerprint is ssh-rsa 2048 EBgWXFfSgWCGqoUn6Qmfenqxxxxxxxxxx.
* 2024-11-11 13:23:56.511 (Exception) **Host key does not match configured key fingerprint "ssh-rsa 2048 jSkTlLqgManAvukYFtUpjiNaQicEgJGd/jKIxxxxxx"!**
. 2024-11-11 13:23:56.511 Closing connection.
< 2024-11-11 13:23:56.511 Script: Host key does not match configured key fingerprint "ssh-rsa 2048 jSkTlLqgManAvukYFtUpjiNaQicEgJGd/jKIxxxxxx"!
< 2024-11-11 13:23:56.511 Host key fingerprint is ssh-rsa 2048 EBgWXFfSgWCGqoUn6Qmfenqxxxxxxxxxx.

My script file is formatted like this
open "sftp://XXXXX:XXXXXXX@XXXXXX.zoetis.com:4022" -hostkey="ssh-rsa 2048 jSkTlLqgManAvukYFtUpjiNaQicEgJGd/jxxxxxxx"