timeout setting doesn't have any effect
This is an attempt to connect to a very slow server.
I've tried setting different timeouts on both the open command and on the command line. The log shows a timeout of 1200 seconds, but timeout always occurs after 20 or 21 seconds regardless of the setting. Windows version and WinScp version are in the log file below.
Thanks for any help you can provide.
Command line
"C:\WinScp\WinSCP.com" /timeout=1200 /log="C:\Temp\sftp_log_20110521_093600.010.txt" < "C:\Temp\sftp_cmds_20110521_093600.010.txt" 1> "C:\Temp\sftp_out_20110521_093600.010.txt" 2>&1
Command file
option batch abort
option confirm off
open sftp://xxxuserxxx:xxxpassxxx@gis.cms.hhs.gov:10022 -timeout=1200
lcd "r:\tmp\Waiting"
put -nopermissions -nopreservetime "localfile.txt" "/remotefile.txt"
exit
Log file
. 2011-05-21 09:31:12.366 --------------------------------------------------------------------------
. 2011-05-21 09:31:12.366 WinSCP Version 4.3.2 (Build 1201) (OS 6.1.7600)
. 2011-05-21 09:31:12.366 Login time: Saturday, May 21, 2011 9:31:12 AM
. 2011-05-21 09:31:12.366 --------------------------------------------------------------------------
. 2011-05-21 09:31:12.366 Session name: xxxuserxxx@gis.cms.hhs.gov
. 2011-05-21 09:31:12.366 Host name: gis.cms.hhs.gov (Port: 10022)
. 2011-05-21 09:31:12.366 User name: xxxuserxxx (Password: Yes, Key file: No)
. 2011-05-21 09:31:12.366 Tunnel: No
. 2011-05-21 09:31:12.366 Transfer Protocol: SFTP
. 2011-05-21 09:31:12.366 Ping type: -, Ping interval: 30 sec; Timeout: 1200 sec
. 2011-05-21 09:31:12.366 Proxy: none
. 2011-05-21 09:31:12.366 SSH protocol version: 2; Compression: No
. 2011-05-21 09:31:12.366 Bypass authentication: No
. 2011-05-21 09:31:12.366 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2011-05-21 09:31:12.366 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2011-05-21 09:31:12.366 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2011-05-21 09:31:12.366 SFTP Bugs: -,-
. 2011-05-21 09:31:12.366 Return code variable: Autodetect; Lookup user groups: Yes
. 2011-05-21 09:31:12.366 Shell: default
. 2011-05-21 09:31:12.366 EOL: 0, UTF: 2
. 2011-05-21 09:31:12.366 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2011-05-21 09:31:12.366 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2011-05-21 09:31:12.366 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-05-21 09:31:12.366 Cache directory changes: Yes, Permanent: Yes
. 2011-05-21 09:31:12.366 DST mode: 1
. 2011-05-21 09:31:12.366 --------------------------------------------------------------------------
. 2011-05-21 09:31:12.376 Looking up host "gis.cms.hhs.gov"
. 2011-05-21 09:31:12.376 Connecting to 12.34.26.31 port 10022
. 2011-05-21 09:31:33.376 Failed to connect to 12.34.26.31: Network error: Connection timed out
I've tried setting different timeouts on both the open command and on the command line. The log shows a timeout of 1200 seconds, but timeout always occurs after 20 or 21 seconds regardless of the setting. Windows version and WinScp version are in the log file below.
Thanks for any help you can provide.
Command line
"C:\WinScp\WinSCP.com" /timeout=1200 /log="C:\Temp\sftp_log_20110521_093600.010.txt" < "C:\Temp\sftp_cmds_20110521_093600.010.txt" 1> "C:\Temp\sftp_out_20110521_093600.010.txt" 2>&1
Command file
option batch abort
option confirm off
open sftp://xxxuserxxx:xxxpassxxx@gis.cms.hhs.gov:10022 -timeout=1200
lcd "r:\tmp\Waiting"
put -nopermissions -nopreservetime "localfile.txt" "/remotefile.txt"
exit
Log file
. 2011-05-21 09:31:12.366 --------------------------------------------------------------------------
. 2011-05-21 09:31:12.366 WinSCP Version 4.3.2 (Build 1201) (OS 6.1.7600)
. 2011-05-21 09:31:12.366 Login time: Saturday, May 21, 2011 9:31:12 AM
. 2011-05-21 09:31:12.366 --------------------------------------------------------------------------
. 2011-05-21 09:31:12.366 Session name: xxxuserxxx@gis.cms.hhs.gov
. 2011-05-21 09:31:12.366 Host name: gis.cms.hhs.gov (Port: 10022)
. 2011-05-21 09:31:12.366 User name: xxxuserxxx (Password: Yes, Key file: No)
. 2011-05-21 09:31:12.366 Tunnel: No
. 2011-05-21 09:31:12.366 Transfer Protocol: SFTP
. 2011-05-21 09:31:12.366 Ping type: -, Ping interval: 30 sec; Timeout: 1200 sec
. 2011-05-21 09:31:12.366 Proxy: none
. 2011-05-21 09:31:12.366 SSH protocol version: 2; Compression: No
. 2011-05-21 09:31:12.366 Bypass authentication: No
. 2011-05-21 09:31:12.366 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2011-05-21 09:31:12.366 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2011-05-21 09:31:12.366 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2011-05-21 09:31:12.366 SFTP Bugs: -,-
. 2011-05-21 09:31:12.366 Return code variable: Autodetect; Lookup user groups: Yes
. 2011-05-21 09:31:12.366 Shell: default
. 2011-05-21 09:31:12.366 EOL: 0, UTF: 2
. 2011-05-21 09:31:12.366 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2011-05-21 09:31:12.366 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2011-05-21 09:31:12.366 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-05-21 09:31:12.366 Cache directory changes: Yes, Permanent: Yes
. 2011-05-21 09:31:12.366 DST mode: 1
. 2011-05-21 09:31:12.366 --------------------------------------------------------------------------
. 2011-05-21 09:31:12.376 Looking up host "gis.cms.hhs.gov"
. 2011-05-21 09:31:12.376 Connecting to 12.34.26.31 port 10022
. 2011-05-21 09:31:33.376 Failed to connect to 12.34.26.31: Network error: Connection timed out