tags:

views:

356

answers:

1

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

+1  A: 

You should prevent the source server generating a new key - there is absolutely no reason to do so. The server's public key identifies the server, and so this identity shouldn't be changed.

Bruce Blackshaw
Thanks for your reply.And how/where should I stop it to generate new key?
Manjot
I wish I knew. I've never heard of a server that generates a new key every day. After looking at the forums, it seems that perhaps that's how the mini server works. It might be worth posting a question there (http://www.coreftp.com/forums/viewforum.php?f=13)
Bruce Blackshaw
:-(I did post a question on ithttp://coreftp.com/forums/viewtopic.php?p=88666#88666I am using mini server on another machine (the DR one) but it doesn't complain anything like this.
Manjot