I plan to create a script file on the fly from within my program and then run it using Winscp (the host machine could be any machine).
The scripts will be used to get a directoy listing, copy some files etc.
Here's one script for example:
option batch on
option confirm off
option transfer binary
get file c:\
When I run it I get the follwoing:
Searching for host...
Connecting to host...
The server's host key was not found it the cache. You have no guarantee that the
server is the computer you think it is. The server's key fingerprint is: ssh-rs
a 1024 46:81:df:51:fa:d1:df:5c:eb:37:5d:07:c8:16:04:1c
If you trust this host, press Yes. To connect without adding host key to the cac
he, press No. To abandon the connection press Cancel.
Continue connecting and add host key to the cache?
(Y)es, (N)o, (C)ancel: Cancel
Host key wasn't verified!
The (C)ancel option is selected automatically.