First thank you in advance for any help... I am pretty new with scripting and I do not use it much so this may be a simple question so if it is I am sorry...
I had this script working but I had to replace a piece of equipment so I needed to update the U/P and the host key and now it does not work
I start WinSCP from a batch file called CloudBackup in the script it runs this command
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\UnifiBackup\Ace\aceWinSCP.log" /ini=nul /script="C:\UnifiBackup\AceCloudkey.scr"
acecloudlkey.scrlooks like this – User and passwords removed
winscp> open sftp://<username>:<password>@192.168.0.11/ -hostkey="ssh-ed25519 255 ssh-ed25519 255 2Vhr2lmNwE1Cr268BUQhb4Ru4vgnQHxsPw0ZPfDKQaA=" Searching for host... Connecting to host... Authenticating... Using username "root". Authenticating with pre-entered password. Authenticated. Starting the session... Session started. Active session:  email@example.com winscp> cd /data/autobackup
If I run my script and I look at the log file it fails and the log file looks like this
. 2022-04-16 14:47:50.432 Looking up host "192.168.0.11" for SSH connection . 2022-04-16 14:47:50.433 Connecting to 192.168.0.11 port 22 . 2022-04-16 14:47:50.464 We claim version: SSH-2.0-WinSCP_release_5.17.9 . 2022-04-16 14:47:50.522 Remote version: SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u7 . 2022-04-16 14:47:50.522 Using SSH protocol version 2 . 2022-04-16 14:47:50.522 Have a known host key of type ssh-ed25519 . 2022-04-16 14:47:50.556 Doing ECDH key exchange with curve Curve25519 and hash SHA-256 . 2022-04-16 14:47:50.675 Server also has ecdsa-sha2-nistp256/ssh-rsa host keys, but we don't know any of them . 2022-04-16 14:47:50.675 Host key fingerprint is: . 2022-04-16 14:47:50.675 ssh-ed25519 255 4f:47:5b:b5:7b:c8:eb:fb:8d:95:3c:0a:c4:70:87:fc 2Vhr2lmNwE1Cr268BUQhb4Ru4vgnQHxsPw0ZPfDKQaA= [color=red]. 2022-04-16 14:47:50.675 Host key does not match configured key fingerprint ssh-ed25519 255 ssh-ed25519 255 2Vhr2lmNwE1Cr268BUQhb4Ru4vgnQHxsPw0ZPfDKQaA=[/color] . 2022-04-16 14:47:50.675 Attempt to close connection due to fatal exception: * 2022-04-16 14:47:50.675 Host key fingerprint is ssh-ed25519 255 2Vhr2lmNwE1Cr268BUQhb4Ru4vgnQHxsPw0ZPfDKQaA=. * 2022-04-16 14:47:50.675 (Exception) **Host key does not match configured key fingerprint "ssh-ed25519 255 ssh-ed25519 255 2Vhr2lmNwE1Cr268BUQhb4Ru4vgnQHxsPw0ZPfDKQaA="!** . 2022-04-16 14:47:50.675 Closing connection.
Please help me