WinSCP with commandline and script
I have a little script for using winscp.com as SFTP Client.
The important execute is:
"C:\Program Files\WinSCP3\winscp3.com" /console /script="C:\Program Files\WinSCP3\example.cmd" /log=winscp.log /timeout=30
And now a little example from our logfile:
BUT, i used the timeout time with 30 seconds ..
WHY closed the connection (winscp) after 25 seconds ??!!??
Any ideas??
I am using the v4.1.9 release.
The important execute is:
"C:\Program Files\WinSCP3\winscp3.com" /console /script="C:\Program Files\WinSCP3\example.cmd" /log=winscp.log /timeout=30
And now a little example from our logfile:
You can see, the other side has not give a reply in 25 seconds.. 2009-07-08 12:30:01.040 Using SSH protocol version 2
. 2009-07-08 12:30:01.072 Doing Diffie-Hellman group exchange
. 2009-07-08 12:30:01.150 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-07-08 12:30:01.244 Host key fingerprint is:
. 2009-07-08 12:30:01.244 ssh-rsa 1024 de:ee:7e:fe:30:2c:bd:95:1d:00:94:d4:90:ba:d5:94
. 2009-07-08 12:30:01.244 Initialised AES-128 SDCTR client->server encryption
. 2009-07-08 12:30:01.244 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-07-08 12:30:01.244 Initialised AES-128 SDCTR server->client encryption
. 2009-07-08 12:30:01.244 Initialised HMAC-SHA1 server->client MAC algorithm
! 2009-07-08 12:30:01.322 Using username "XXXXX".
. 2009-07-08 12:30:26.337 Waiting for data timed out, asking user what to do.
. 2009-07-08 12:30:26.337 Asking user:
. 2009-07-08 12:30:26.337 Der entfernte Rechner hat seit 25 Sekunden nicht geantwortet.
. 2009-07-08 12:30:26.337
. 2009-07-08 12:30:26.337 Weitere 25 Sekunden warten? ()
. 2009-07-08 12:30:26.337 Attempt to close connection due to fatal exception:
* 2009-07-08 12:30:26.337 Abgebrochen durch Benutzer.
. 2009-07-08 12:30:26.337 Closing connection.
BUT, i used the timeout time with 30 seconds ..
WHY closed the connection (winscp) after 25 seconds ??!!??
Any ideas??
I am using the v4.1.9 release.