You can store the host key to the cache in registry before runing the script. Or you can use INI file instead.
Hello:
I have a winscp process that uses C# script on client side to attach to an SFTP server and send through files. All is working well except I have to send host key through by script on every logon. Is there a way to cache the hostkey to the clients machine on the first logon? There is no user interaction during this process BTW.
Thanks!