When using the 4.2.5 build, we encounter the same problem.
. 2010-02-05 10:07:23.173 --------------------------------------------------------------------------
. 2010-02-05 10:07:23.173 WinSCP Version 4.2.5 (Build 624) (OS 5.1.2600 Service Pack 3)
. 2010-02-05 10:07:23.173 Login time: Freitag, 5. Februar 2010 10:07:23
. 2010-02-05 10:07:23.173 --------------------------------------------------------------------------
. 2010-02-05 10:07:23.173 Session name: root@myhost
. 2010-02-05 10:07:23.173 Host name: myhost (Port: 22)
. 2010-02-05 10:07:23.173 User name: root (Password: No, Key file: Yes)
. 2010-02-05 10:07:23.173 Tunnel: No
. 2010-02-05 10:07:23.173 Transfer Protocol: SCP
. 2010-02-05 10:07:23.173 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-02-05 10:07:23.173 Proxy: none
. 2010-02-05 10:07:23.173 SSH protocol version: 2; Compression: No
. 2010-02-05 10:07:23.173 Bypass authentication: No
. 2010-02-05 10:07:23.173 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-02-05 10:07:23.173 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-02-05 10:07:23.173 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-02-05 10:07:23.173 SFTP Bugs: -,-
. 2010-02-05 10:07:23.173 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-02-05 10:07:23.173 Shell: default, EOL: 0
. 2010-02-05 10:07:23.188 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-02-05 10:07:23.188 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-02-05 10:07:23.188 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-02-05 10:07:23.188 Cache directory changes: Yes, Permanent: Yes
. 2010-02-05 10:07:23.188 DST mode: 1
. 2010-02-05 10:07:23.188 --------------------------------------------------------------------------
. 2010-02-05 10:07:23.266 Looking up host "myhost"
. 2010-02-05 10:07:23.266 Connecting to 192.168.47.11 port 22
. 2010-02-05 10:07:23.282 Server version: SSH-2.0-OpenSSH_3.6.1p2
. 2010-02-05 10:07:23.282 Using SSH protocol version 2
. 2010-02-05 10:07:23.282 We claim version: SSH-2.0-WinSCP_release_4.2.5
. 2010-02-05 10:07:23.282 Doing Diffie-Hellman group exchange
. 2010-02-05 10:07:23.313 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-02-05 10:07:23.891 Host key fingerprint is:
. 2010-02-05 10:07:24.001 ssh-rsa 1024 70:b0:43:04:97:ee:8a:f9:aa:4d:01:15:61:a8:85:cb
. 2010-02-05 10:07:24.001 Initialised AES-256 CBC client->server encryption
. 2010-02-05 10:07:24.001 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-02-05 10:07:24.001 Initialised AES-256 CBC server->client encryption
. 2010-02-05 10:07:24.001 Initialised HMAC-SHA1 server->client MAC algorithm
. 2010-02-05 10:07:24.001 Reading private key file "C:\Dokumente und Einstellungen\myname\Eigene Dateien\is_dsa.ppk"
! 2010-02-05 10:07:24.001 Using username "root".
. 2010-02-05 10:07:24.016 Offered public key
. 2010-02-05 10:07:24.048 Offer of public key accepted
! 2010-02-05 10:07:24.048 Authenticating with public key "mypublickey"
. 2010-02-05 10:07:24.048 Prompt (2, SSH key passphrase, , Passphrase for key "mypublickey": )
. 2010-02-05 10:07:27.126 Access granted
. 2010-02-05 10:07:27.141 Opened channel for session
. 2010-02-05 10:07:27.173 Started a shell/command
. 2010-02-05 10:07:27.173 --------------------------------------------------------------------------
. 2010-02-05 10:07:27.313 Using SCP protocol.
. 2010-02-05 10:07:27.313 Doing startup conversation with host.
. 2010-02-05 10:07:27.313 Skipping host startup message (if any).
> 2010-02-05 10:07:27.313 echo "WinSCP: this is end-of-file:0"
< 2010-02-05 10:07:27.360 WinSCP: this is end-of-file:0
. 2010-02-05 10:07:27.485 Detecting variable containing return code of last command.
. 2010-02-05 10:07:27.485 Trying "$status".
> 2010-02-05 10:07:27.485 echo "$status" ; echo "WinSCP: this is end-of-file:0"
< 2010-02-05 10:07:27.688 WinSCP: this is end-of-file:0
. 2010-02-05 10:07:27.766 The response is not numerical exit code
. 2010-02-05 10:07:27.782 Trying "$?".
> 2010-02-05 10:07:27.782 echo "$?" ; echo "WinSCP: this is end-of-file:0"
< 2010-02-05 10:07:27.813 0
< 2010-02-05 10:07:28.126 WinSCP: this is end-of-file:0
. 2010-02-05 10:07:28.220 Return code variable "$?" selected.
. 2010-02-05 10:07:28.220 Clearing all aliases.
> 2010-02-05 10:07:28.220 unalias "ls" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:28.251 -bash: line 4: unalias: ls: not found
< 2010-02-05 10:07:28.563 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:28.657 unalias "echo" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:28.688 -bash: line 5: unalias: echo: not found
< 2010-02-05 10:07:29.001 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:29.063 unalias "pwd" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:29.095 -bash: line 6: unalias: pwd: not found
< 2010-02-05 10:07:29.329 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:29.391 unalias "cd" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:29.423 -bash: line 7: unalias: cd: not found
< 2010-02-05 10:07:29.657 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:29.720 unalias "groups" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:29.751 -bash: line 8: unalias: groups: not found
< 2010-02-05 10:07:29.985 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:30.048 unalias "scp" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:30.079 -bash: line 9: unalias: scp: not found
< 2010-02-05 10:07:30.313 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:30.376 unalias "rm" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:30.423 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:30.423 unalias "mv" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:30.454 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:30.454 unalias "mkdir" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:30.501 -bash: line 12: unalias: mkdir: not found
< 2010-02-05 10:07:30.751 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:30.907 unalias "chmod" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:30.938 -bash: line 13: unalias: chmod: not found
< 2010-02-05 10:07:31.188 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:31.220 unalias "chgrp" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:31.251 -bash: line 14: unalias: chgrp: not found
< 2010-02-05 10:07:31.516 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:31.595 unalias "chown" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:31.626 -bash: line 15: unalias: chown: not found
< 2010-02-05 10:07:31.845 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:31.923 unalias "unset" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:31.954 -bash: line 16: unalias: unset: not found
< 2010-02-05 10:07:32.282 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:32.360 unalias "unalias" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:32.391 -bash: line 17: unalias: unalias: not found
< 2010-02-05 10:07:32.720 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:32.813 unalias "ln" ; echo "WinSCP: this is end-of-file:$?"
! 2010-02-05 10:07:32.845 -bash: line 18: unalias: ln: not found
< 2010-02-05 10:07:33.157 WinSCP: this is end-of-file:1
> 2010-02-05 10:07:33.251 unalias "cp" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.282 WinSCP: this is end-of-file:0
. 2010-02-05 10:07:33.282 Clearing national user variables.
> 2010-02-05 10:07:33.282 unset "LANG" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.313 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:33.313 unset "LANGUAGE" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.360 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:33.360 unset "LC_CTYPE" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.391 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:33.391 unset "LC_COLLATE" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.438 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:33.438 unset "LC_MONETARY" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.470 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:33.657 unset "LC_NUMERIC" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.688 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:33.688 unset "LC_TIME" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.735 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:33.735 unset "LC_MESSAGES" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.782 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:33.782 unset "LC_ALL" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.813 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:33.813 unset "HUMAN_BLOCKS" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:33.860 WinSCP: this is end-of-file:0
. 2010-02-05 10:07:34.016 Looking up groups and users.
> 2010-02-05 10:07:34.016 groups ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:34.063 root bin daemon sys adm disk wheel
< 2010-02-05 10:07:34.251 WinSCP: this is end-of-file:0
. 2010-02-05 10:07:34.313 Following groups found:
. 2010-02-05 10:07:34.313 "root" [0]
. 2010-02-05 10:07:34.313 "bin" [0]
. 2010-02-05 10:07:34.313 "daemon" [0]
. 2010-02-05 10:07:34.313 "sys" [0]
. 2010-02-05 10:07:34.313 "adm" [0]
. 2010-02-05 10:07:34.313 "disk" [0]
. 2010-02-05 10:07:34.313 "wheel" [0]
. 2010-02-05 10:07:34.313 Following membership found:
. 2010-02-05 10:07:34.313 "root" [0]
. 2010-02-05 10:07:34.313 "bin" [0]
. 2010-02-05 10:07:34.313 "daemon" [0]
. 2010-02-05 10:07:34.313 "sys" [0]
. 2010-02-05 10:07:34.313 "adm" [0]
. 2010-02-05 10:07:34.313 "disk" [0]
. 2010-02-05 10:07:34.313 "wheel" [0]
. 2010-02-05 10:07:34.313 Following users found:
. 2010-02-05 10:07:34.313 "root" [0]
. 2010-02-05 10:07:34.313 "bin" [0]
. 2010-02-05 10:07:34.313 "daemon" [0]
. 2010-02-05 10:07:34.313 "sys" [0]
. 2010-02-05 10:07:34.313 "adm" [0]
. 2010-02-05 10:07:34.313 "disk" [0]
. 2010-02-05 10:07:34.313 "wheel" [0]
. 2010-02-05 10:07:34.313 Getting current directory name.
> 2010-02-05 10:07:34.313 pwd ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:34.360 /root
< 2010-02-05 10:07:34.688 WinSCP: this is end-of-file:0
. 2010-02-05 10:07:35.141 Listing current directory.
> 2010-02-05 10:07:35.141 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:35.173 total 32
--- directory information removed ---
< 2010-02-05 10:07:35.454 WinSCP: this is end-of-file:0
. 2010-02-05 10:07:35.626 Directory listing with --full-time succeed, next time all errors during directory listing will be displayed immediatelly.
. 2010-02-05 10:07:35.626 Startup conversation with host finished.
. 2010-02-05 10:07:57.079 Cached directory change via ".." to "/".
. 2010-02-05 10:07:57.126 Getting current directory name.
. 2010-02-05 10:07:57.126 Listing current directory.
. 2010-02-05 10:07:57.126 Locating to cached directory "/".
> 2010-02-05 10:07:57.126 cd "/" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:57.157 WinSCP: this is end-of-file:0
> 2010-02-05 10:07:57.157 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:07:57.204 total 213
--- directory information removed ---
< 2010-02-05 10:07:57.204 WinSCP: this is end-of-file:0
. 2010-02-05 10:08:00.126 Cached directory change via "home" to "/home".
. 2010-02-05 10:08:00.173 Getting current directory name.
. 2010-02-05 10:08:00.173 Listing current directory.
. 2010-02-05 10:08:00.173 Locating to cached directory "/home".
> 2010-02-05 10:08:00.173 cd "/home" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:08:00.220 WinSCP: this is end-of-file:0
> 2010-02-05 10:08:00.220 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:08:00.251 total 16
--- directory information removed ---
< 2010-02-05 10:08:00.501 WinSCP: this is end-of-file:0
. 2010-02-05 10:08:02.032 Cached directory change via "username" to "/home/username".
. 2010-02-05 10:08:02.079 Getting current directory name.
. 2010-02-05 10:08:02.095 Listing current directory.
. 2010-02-05 10:08:02.095 Locating to cached directory "/home/username".
> 2010-02-05 10:08:02.095 cd "/home/username" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:08:02.126 WinSCP: this is end-of-file:0
> 2010-02-05 10:08:02.126 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
--- directory information removed ---
< 2010-02-05 10:08:02.360 WinSCP: this is end-of-file:0
. 2010-02-05 10:08:04.876 Changing directory to "cpinfo".
> 2010-02-05 10:08:04.923 cd "cpinfo" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:08:04.970 WinSCP: this is end-of-file:0
. 2010-02-05 10:08:04.970 Getting current directory name.
> 2010-02-05 10:08:04.970 pwd ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:08:05.001 /home/username/cpinfo
< 2010-02-05 10:08:05.314 WinSCP: this is end-of-file:0
. 2010-02-05 10:08:05.501 Listing current directory.
> 2010-02-05 10:08:05.501 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:08:05.532 total 101792
< 2010-02-05 10:08:05.532 drwxrwx--- 2 root root 4096 2010-02-03 12:39:54.000000000 +0100 .
< 2010-02-05 10:08:05.532 drwx------ 6 root root 4096 2008-09-25 15:33:58.000000000 +0200 ..
< 2010-02-05 10:08:05.532 -rw-rw---- 1 root root 51840101 2010-01-08 22:00:34.000000000 +0100 20100108__myhost.gz
< 2010-02-05 10:08:05.532 -rw-rw---- 1 root root 52265496 2010-02-03 12:39:54.000000000 +0100 20100203__myhost.gz
< 2010-02-05 10:08:05.860 WinSCP: this is end-of-file:0
. 2010-02-05 10:08:20.095 Copying 1 files/directories to local directory "C:\Dokumente und Einstellungen\myname\Eigene Dateien\"
. 2010-02-05 10:08:20.126 PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2010-02-05 10:08:20.126 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2010-02-05 10:08:20.126 AscM: *.*html; *.htm; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
> 2010-02-05 10:08:20.126 echo "WinSCP: this is begin-of-file" ; scp -r -p -d -f "20100203__myhost.gz" ; echo "WinSCP: this is end-of-file:$?"
< 2010-02-05 10:08:20.157 WinSCP: this is begin-of-file
. 2010-02-05 10:08:20.157 Sending NULL.
< 2010-02-05 10:08:20.157 T1265197194 0 1265324714 0
. 2010-02-05 10:08:20.157 Sending NULL.
< 2010-02-05 10:08:20.157 C0660 52265496 20100203__myhost.gz
. 2010-02-05 10:08:20.298 Sending NULL.
. 2010-02-05 10:08:20.298 Binary transfer mode selected.
. 2010-02-05 10:08:20.439 Server unexpectedly closed network connection
* 2010-02-05 10:08:20.548 (ESshFatal) Die Netzwerkverbindung wurde vom entfernten Rechner unerwartet geschlossen
* 2010-02-05 10:08:20.548 Kopieren der Datei '20100203__myhost.gz' schlug fehl (aber richtig!).
* 2010-02-05 10:08:20.548 Kopieren von Dateien vom entfernten Rechner schlug fehl.