Re: Hostkey not found in cache
Quoting my answer on your duplicate post on stackverflow.com
https://stackoverflow.com/q/25591844/850848#25594082
Host key fingerprint verification is a crucial step in securing your SSH connection. Even if you are using set of sessions with your script, it does not excuse you. The fingerprint should be part of set of information you have for each of the sessions (in addition to hostname, username and password).
Skipping fingerprint verification means that you loose any security and there's no point using SSH/SFTP anymore.
See https://winscp.net/eng/docs/ssh_verifying_the_host_key
Anyway, if you do not care about security, you can use
See https://winscp.net/eng/docs/scriptcommand_open
https://stackoverflow.com/q/25591844/850848#25594082
Host key fingerprint verification is a crucial step in securing your SSH connection. Even if you are using set of sessions with your script, it does not excuse you. The fingerprint should be part of set of information you have for each of the sessions (in addition to hostname, username and password).
Skipping fingerprint verification means that you loose any security and there's no point using SSH/SFTP anymore.
See https://winscp.net/eng/docs/ssh_verifying_the_host_key
Anyway, if you do not care about security, you can use
-hostkey=*
switch to unconditionally accept any host key.
See https://winscp.net/eng/docs/scriptcommand_open