commandline download...
Hi,
i try to make a unattendet commandline download with the following commandline:
WinSCP.exe /command "open xx:xx@xx" "/option batch on" "/option confirm off" "get x/x/x.txt C:\x.txt" "exit" /Log="C:\log.txt"
unfortunatly i don't get it to work. I allways get this lines in the Log:
. 2007-11-21 18:49:12.875 Asking user:
. 2007-11-21 18:49:12.875 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.
. 2007-11-21 18:49:12.875
. 2007-11-21 18:49:12.875 The server's rsa2 key fingerprint is:
. 2007-11-21 18:49:12.875 ssh-rsa 1024 c6:5b:58:f2:75:16:bb:3a:dd:46:70:44:f0:6c:31:45
. 2007-11-21 18:49:12.875
. 2007-11-21 18:49:12.875 If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
. 2007-11-21 18:49:12.875
. 2007-11-21 18:49:12.875 Continue connecting and add host key to the cache? ()
. 2007-11-21 18:49:12.875 Attempt to close connection due to fatal exception:
* 2007-11-21 18:49:12.875 Host key wasn't verified!
. 2007-11-21 18:49:12.875 Closing connection.
i thought with "option batch on" i turned off the "Asking user" (which is quit stupid in a commandline, or not?)
I can't store the connection (in WinSCP the connection works) because there are different connections, and it would be easyier - because i allways trust my servers.
so, what could i do to get this working?
BR
Thomas
i try to make a unattendet commandline download with the following commandline:
WinSCP.exe /command "open xx:xx@xx" "/option batch on" "/option confirm off" "get x/x/x.txt C:\x.txt" "exit" /Log="C:\log.txt"
unfortunatly i don't get it to work. I allways get this lines in the Log:
. 2007-11-21 18:49:12.875 Asking user:
. 2007-11-21 18:49:12.875 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.
. 2007-11-21 18:49:12.875
. 2007-11-21 18:49:12.875 The server's rsa2 key fingerprint is:
. 2007-11-21 18:49:12.875 ssh-rsa 1024 c6:5b:58:f2:75:16:bb:3a:dd:46:70:44:f0:6c:31:45
. 2007-11-21 18:49:12.875
. 2007-11-21 18:49:12.875 If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
. 2007-11-21 18:49:12.875
. 2007-11-21 18:49:12.875 Continue connecting and add host key to the cache? ()
. 2007-11-21 18:49:12.875 Attempt to close connection due to fatal exception:
* 2007-11-21 18:49:12.875 Host key wasn't verified!
. 2007-11-21 18:49:12.875 Closing connection.
i thought with "option batch on" i turned off the "Asking user" (which is quit stupid in a commandline, or not?)
I can't store the connection (in WinSCP the connection works) because there are different connections, and it would be easyier - because i allways trust my servers.
so, what could i do to get this working?
BR
Thomas