I have the following script in a Text File...if I run from a DOS Commandline
winscp.com /ini=nul /script=C:\admin\Faster\FasterScript2.txt
The File has the following info...
open sftp://user:firstname.lastname@example.org/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx..."
# Change remote directory
# Upload the file to current working directory
# Exit WinSCP
I get a "If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection
press Cancel.(Y)es, (N)o, C(a)ncel, (C)opy Key:"
If I pres [Y] and [enter key] it works.
My Question is, how can I have the "If you trust...message" no longer be there?
Also, how can I get this in a Batch File, so I can schedule it as a Task??
Thank you in advance for your help!
U of M