Hi,
I Am tranfering a file from one server to another using "Core FTP mini-sftp-server" on source side and Winscp on destination side. I am logging in these two machine using local admin account which are same on both servers. i have been doing this process manually:
- Start MSFTP server on source
- Start winscp on destination, connect to source and get the file.
Now I want to automate it and i tried the following
Start msftp from command line on source On destination:
- Winscp.exe open login:password@IPAdress
- connect
- get
- close
- Exit
The problem with this is if I do it for the first time everyday, it asks me to update the key at the destination side saying: "WARNING POTENTIAL SECURITY BREACH! The server’s host key does not match the one WinSCP has is cache. This means that either the server administrator has charged Ihe host key, the server presents different key under certain circumstances, or you have actually connected to another computer pretending to be the server"
I have to manually do it (Click on update) at first and then for the following copies, the automation works.
Question:
How can I update the key using cmd line while connecting to the server?
Can I prevent the source to generate new key daily ? Or should i do it?
Regards Manjot