Script hangs on prompt to accept new host key
I have a problem when the winscp host key has been deleted on a remote machine.
Next time we connect with a script, it hangs on the prompt "The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is..."
Is there a way to get the session to time out and fail?
Thanks
Next time we connect with a script, it hangs on the prompt "The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is..."
Is there a way to get the session to time out and fail?
Thanks