I'll also confirm this incorrect behavior in 4.2.9 (Build 938).
Copying from a VMware server (linux) to the PC using SCP fails with "server disconnected". Copying the same direction connected using SFTP w/SCP fallback works.
Copying from your PC to the VMware (linux) server works fine in SCP mode.
Version 4.0.4 (Build 346) did not have this problem.
Here's the relevant portion of the log file:
-------------------------------------------------------------
. 2010-12-15 11:34:31.742 Cached directory change via "Iso Images" to "/vmfs/volumes/storage1/Iso Images".
. 2010-12-15 11:34:31.742 Getting current directory name.
. 2010-12-15 11:34:31.742 Listing current directory.
. 2010-12-15 11:34:31.742 Locating to cached directory "/vmfs/volumes/storage1/Iso Images".
> 2010-12-15 11:34:31.742 cd "/vmfs/volumes/storage1/Iso Images" ; echo "WinSCP: this is end-of-file:$?"
< 2010-12-15 11:34:31.773 WinSCP: this is end-of-file:0
> 2010-12-15 11:34:31.773 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2010-12-15 11:34:31.820 total 3776576
< 2010-12-15 11:34:31.820 drwxrwxr-x 1 hittnda users 1820 2010-12-15 06:46:03.000000000 -0500 .
< 2010-12-15 11:34:31.820 drwxrwxrwt 1 root root 1260 2010-12-10 05:02:51.000000000 -0500 ..
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 53217280 2010-12-09 04:30:25.000000000 -0500 W2K3SP2_POST_PATCHES.ISO
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 624521216 2010-12-09 04:27:07.000000000 -0500 en_win_srv_2003_r2_enterprise_with_sp2_cd1_X13-05460.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 127309824 2010-12-09 04:27:39.000000000 -0500 en_win_srv_2003_r2_enterprise_with_sp2_cd2_X13-68584.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 623075328 2010-12-09 04:33:07.000000000 -0500 en_win_srv_2003_r2_standard_with_sp2_cd1_X13-04790.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 127713280 2010-12-09 04:33:42.000000000 -0500 en_win_srv_2003_r2_standard_with_sp2_cd2_X13-68583.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 391905280 2010-12-09 04:35:33.000000000 -0500 sol-10-u5-ga-x86-v1.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 376832000 2010-12-09 04:37:08.000000000 -0500 sol-10-u5-ga-x86-v2.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 221184000 2010-12-09 04:38:14.000000000 -0500 sol-10-u5-ga-x86-v3.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 298844160 2010-12-09 04:39:48.000000000 -0500 sol-10-u5-ga-x86-v4.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 467927040 2010-12-09 04:41:51.000000000 -0500 sol-10-u5-ga-x86-v5.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 548630528 2010-12-09 04:30:11.000000000 -0500 w2k3sp2_3959_usa_x86fre_spcd.iso
< 2010-12-15 11:34:31.820 WinSCP: this is end-of-file:0
. 2010-12-15 11:34:38.325 Copying 1 files/directories to local directory "C:\Users\hittnda\Documents\Iso Images\"
. 2010-12-15 11:34:38.325 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2010-12-15 11:34:38.325 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2010-12-15 11:34:38.325 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
> 2010-12-15 11:34:38.325 echo "WinSCP: this is begin-of-file" ; scp -r -p -d -f "sol-10-u5-ga-x86-v1.iso" ; echo "WinSCP: this is end-of-file:$?"
< 2010-12-15 11:34:38.372 WinSCP: this is begin-of-file
. 2010-12-15 11:34:38.372 Sending NULL.
< 2010-12-15 11:34:38.388 T1291887333 0 1292414255 0
. 2010-12-15 11:34:38.388 Sending NULL.
< 2010-12-15 11:34:38.388 C0644 391905280 sol-10-u5-ga-x86-v1.iso
. 2010-12-15 11:34:38.388 Sending NULL.
. 2010-12-15 11:34:38.388 Binary transfer mode selected.
. 2010-12-15 11:34:39.105 Server unexpectedly closed network connection
* 2010-12-15 11:34:39.136 (ESshFatal) Server unexpectedly closed network connection.
* 2010-12-15 11:34:39.136 Copying file 'sol-10-u5-ga-x86-v1.iso' fatally failed.
* 2010-12-15 11:34:39.136 Copying files from remote side failed.
Copying from a VMware server (linux) to the PC using SCP fails with "server disconnected". Copying the same direction connected using SFTP w/SCP fallback works.
Copying from your PC to the VMware (linux) server works fine in SCP mode.
Version 4.0.4 (Build 346) did not have this problem.
Here's the relevant portion of the log file:
-------------------------------------------------------------
. 2010-12-15 11:34:31.742 Cached directory change via "Iso Images" to "/vmfs/volumes/storage1/Iso Images".
. 2010-12-15 11:34:31.742 Getting current directory name.
. 2010-12-15 11:34:31.742 Listing current directory.
. 2010-12-15 11:34:31.742 Locating to cached directory "/vmfs/volumes/storage1/Iso Images".
> 2010-12-15 11:34:31.742 cd "/vmfs/volumes/storage1/Iso Images" ; echo "WinSCP: this is end-of-file:$?"
< 2010-12-15 11:34:31.773 WinSCP: this is end-of-file:0
> 2010-12-15 11:34:31.773 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2010-12-15 11:34:31.820 total 3776576
< 2010-12-15 11:34:31.820 drwxrwxr-x 1 hittnda users 1820 2010-12-15 06:46:03.000000000 -0500 .
< 2010-12-15 11:34:31.820 drwxrwxrwt 1 root root 1260 2010-12-10 05:02:51.000000000 -0500 ..
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 53217280 2010-12-09 04:30:25.000000000 -0500 W2K3SP2_POST_PATCHES.ISO
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 624521216 2010-12-09 04:27:07.000000000 -0500 en_win_srv_2003_r2_enterprise_with_sp2_cd1_X13-05460.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 127309824 2010-12-09 04:27:39.000000000 -0500 en_win_srv_2003_r2_enterprise_with_sp2_cd2_X13-68584.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 623075328 2010-12-09 04:33:07.000000000 -0500 en_win_srv_2003_r2_standard_with_sp2_cd1_X13-04790.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 127713280 2010-12-09 04:33:42.000000000 -0500 en_win_srv_2003_r2_standard_with_sp2_cd2_X13-68583.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 391905280 2010-12-09 04:35:33.000000000 -0500 sol-10-u5-ga-x86-v1.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 376832000 2010-12-09 04:37:08.000000000 -0500 sol-10-u5-ga-x86-v2.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 221184000 2010-12-09 04:38:14.000000000 -0500 sol-10-u5-ga-x86-v3.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 298844160 2010-12-09 04:39:48.000000000 -0500 sol-10-u5-ga-x86-v4.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 467927040 2010-12-09 04:41:51.000000000 -0500 sol-10-u5-ga-x86-v5.iso
< 2010-12-15 11:34:31.820 -rw-r--r-- 1 hittnda users 548630528 2010-12-09 04:30:11.000000000 -0500 w2k3sp2_3959_usa_x86fre_spcd.iso
< 2010-12-15 11:34:31.820 WinSCP: this is end-of-file:0
. 2010-12-15 11:34:38.325 Copying 1 files/directories to local directory "C:\Users\hittnda\Documents\Iso Images\"
. 2010-12-15 11:34:38.325 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2010-12-15 11:34:38.325 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2010-12-15 11:34:38.325 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
> 2010-12-15 11:34:38.325 echo "WinSCP: this is begin-of-file" ; scp -r -p -d -f "sol-10-u5-ga-x86-v1.iso" ; echo "WinSCP: this is end-of-file:$?"
< 2010-12-15 11:34:38.372 WinSCP: this is begin-of-file
. 2010-12-15 11:34:38.372 Sending NULL.
< 2010-12-15 11:34:38.388 T1291887333 0 1292414255 0
. 2010-12-15 11:34:38.388 Sending NULL.
< 2010-12-15 11:34:38.388 C0644 391905280 sol-10-u5-ga-x86-v1.iso
. 2010-12-15 11:34:38.388 Sending NULL.
. 2010-12-15 11:34:38.388 Binary transfer mode selected.
. 2010-12-15 11:34:39.105 Server unexpectedly closed network connection
* 2010-12-15 11:34:39.136 (ESshFatal) Server unexpectedly closed network connection.
* 2010-12-15 11:34:39.136 Copying file 'sol-10-u5-ga-x86-v1.iso' fatally failed.
* 2010-12-15 11:34:39.136 Copying files from remote side failed.