martin wrote:
Just do not do that. It breaks purpose of SSH. The only safe way is to pre-accept the host key in WinSCP configuration.
I have a batch script which runs fine a few times (to copy files from NT to UNIX)then it starts giving the following error. What can I do? It again runs properly once I log in and run it manually.
Thanks.
. 2008-01-17 17:20:02.439 The server's host key does not match the one WinSCP has is cache. This means that either the server administrator has changed the host key, or you have actually connected to another computer pretending to be the server.
. 2008-01-17 17:20:02.439
. 2008-01-17 17:20:02.439 The new rsa2 key fingerprint is:
. 2008-01-17 17:20:02.439 ssh-rsa 1024 fc:3d:12:e0:44:f3:fc:b1:b8:4a:c7
. 2008-01-17 17:20:02.439
. 2008-01-17 17:20:02.439 If you were expecting this change and trust the new key, press Yes to update cache and continue connecting. If you want to carry on connecting but without updating the cache, press No. If you want to abandon the connection completely, press Cancel. Pressing Cancel is the ONLY guaranteed safe choice.
. 2008-01-17 17:20:02.439 ()
. 2008-01-17 17:20:02.439 Attempt to close connection due to fatal exception:
* 2008-01-17 17:20:02.439 Host key wasn't verified!
. 2008-01-17 17:20:02.439 Closing connection.