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"