(Exception) **Host key does not match configured key fingerprint "ssh-rsa 1024 KfH2Zul0c+lnIQ3vIRz7s
Hi,
I have a script (Batch file) for transferring files to a remote server with private keys provided by the party who owns the remote server. Sometimes I am receiving an error as below and files not been send.
Kindly help me to resolve this issue, looking forward to your earliest support and co-operation.
I have a script (Batch file) for transferring files to a remote server with private keys provided by the party who owns the remote server. Sometimes I am receiving an error as below and files not been send.
My batch file is given below.(Exception) **Host key does not match configured key fingerprint "ssh-rsa 1024 KfH2Zul0c+lnIQ3vIRz7slq71crPirz+3ZkvwA5gulE="!**
@echo off "C:\Program Files (x86)\WinSCP\WinSCP.com" ^ /log="C:\writable\path\to\log\WinSCP.log" /ini=nul ^ /command ^ "open sftp://user:password@remoteserver:10039/ -hostkey=""ssh-rsa 1024 KfH2Zul0c+lnIQ3vIRz7slq71crPirz+3ZkvwA5gulE="" -privatekey=""E:\FTPPIL\lmsprdedi01.openssh"" -rawsettings AgentFwd=1 KEX=""rsa,ecdh,dh-gex-sha1,dh-group14-sha1,WARN,dh-group1-sha1""" ^ "cd Outbox/eqmvmt" ^ "lcd C:\LINES\ProdFTPEDIOUT\PIL\Coarri" ^ "put *.* -nopreservetime" ^ "lcd C:\LINES\ProdFTPEDIOUT\PIL\Codeco" ^ "put *.* -nopreservetime" ^ "exit" set WINSCP_RESULT=%ERRORLEVEL% if %WINSCP_RESULT% equ 0 ( echo Success ) else ( echo Error ) exit /b %WINSCP_RESULT%
Kindly help me to resolve this issue, looking forward to your earliest support and co-operation.