Problem uploading shorter files
This might help illustrate the problem. A text file is uploaded that contains the text...
The file is then edited to read...<p>This is a long sentence.</p>
Then that is uploaded but the file on the server contains the text<p>This is a sentence.</p>
If it helps, I do not get the "overwrite file?" dialog box despite whatever settings that are chosen in the Environment options.<p>This is a sentence.</p>
./p>
I am using WinSCP version 5.9.3 (build 7136) in GUI Commander mode.
At first I thought it might be an editor error, but it is not, it's the files on the server being affected during the transfer. I also thought it might be something to do with the server, so I tried the transfer with FileZilla and that works properly. This happens to all text files, HTML, CSS, JS etc., changing the options to binary does not help either.
Here's yesterday's log while trying this...
. 2016-12-26 10:16:24.195 -------------------------------------------------------------------------- . 2016-12-26 10:16:24.195 WinSCP Version 5.9.3 (Build 7136) (OS 10.0.14393 - Windows 10 Home) . 2016-12-26 10:16:24.195 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\ . 2016-12-26 10:16:24.195 Log level: Normal . 2016-12-26 10:16:24.195 Local account: DESKTOP-E0MR94O\brisray . 2016-12-26 10:16:24.195 Working directory: C:\Program Files (x86)\WinSCP . 2016-12-26 10:16:24.195 Process ID: 16892 . 2016-12-26 10:16:24.195 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" . 2016-12-26 10:16:24.195 Time zone: Current: GMT-5, Standard: GMT-5 (US Eastern Standard Time), DST: GMT-4 (US Eastern Daylight Time), DST Start: 3/13/2016, DST End: 11/6/2016 . 2016-12-26 10:16:24.195 Login time: Monday, December 26, 2016 10:16:24 AM . 2016-12-26 10:16:24.195 -------------------------------------------------------------------------- . 2016-12-26 10:16:24.195 Session name: brisray@brisray.com (Site) . 2016-12-26 10:16:24.195 Host name: brisray.com (Port: 22) . 2016-12-26 10:16:24.195 User name: brisray (Password: No, Key file: No, Passphrase: No) . 2016-12-26 10:16:24.195 Tunnel: No . 2016-12-26 10:16:24.195 Transfer Protocol: SFTP . 2016-12-26 10:16:24.195 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec . 2016-12-26 10:16:24.195 Disable Nagle: No . 2016-12-26 10:16:24.195 Proxy: None . 2016-12-26 10:16:24.195 Send buffer: 262144 . 2016-12-26 10:16:24.195 SSH protocol version: 2; Compression: No . 2016-12-26 10:16:24.195 Bypass authentication: No . 2016-12-26 10:16:24.195 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No . 2016-12-26 10:16:24.195 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No . 2016-12-26 10:16:24.195 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1 . 2016-12-26 10:16:24.195 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto . 2016-12-26 10:16:24.195 Simple channel: Yes . 2016-12-26 10:16:24.195 Return code variable: Autodetect; Lookup user groups: Auto . 2016-12-26 10:16:24.195 Shell: default . 2016-12-26 10:16:24.195 EOL: LF, UTF: Auto . 2016-12-26 10:16:24.195 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No . 2016-12-26 10:16:24.195 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No . 2016-12-26 10:16:24.195 SFTP Bugs: Auto,Auto . 2016-12-26 10:16:24.195 SFTP Server: default . 2016-12-26 10:16:24.195 Local directory: C:\Users\brisray\Documents\Websites\HMSGambia, Remote directory: /hmsgambia, Update: Yes, Cache: Yes . 2016-12-26 10:16:24.195 Cache directory changes: Yes, Permanent: Yes . 2016-12-26 10:16:24.195 Recycle bin: Delete to: No, Overwritten to: No, Bin path: . 2016-12-26 10:16:24.195 DST mode: Unix . 2016-12-26 10:16:24.195 -------------------------------------------------------------------------- . 2016-12-26 10:16:24.533 Looking up host "brisray.com" for SSH connection . 2016-12-26 10:16:24.538 Connecting to 192.168.0.2 port 22 . 2016-12-26 10:16:24.542 We claim version: SSH-2.0-WinSCP_release_5.9.3 . 2016-12-26 10:16:24.594 Server version: SSH-2.0-Syncplify_Me_Server . 2016-12-26 10:16:24.594 We believe remote version has SSH-2 channel request bug . 2016-12-26 10:16:24.594 Using SSH protocol version 2 . 2016-12-26 10:16:24.609 Have a known host key of type rsa2 . 2016-12-26 10:16:24.612 Doing Diffie-Hellman group exchange . 2016-12-26 10:16:24.679 Doing Diffie-Hellman key exchange with hash SHA-1 . 2016-12-26 10:16:24.934 Host key fingerprint is: . 2016-12-26 10:16:24.934 ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25 . 2016-12-26 10:16:24.934 Verifying host key rsa2 0x10001,0xb3a3537f32e14130 903a0b9fa79d7d95 fd8dbce311635eee 61003131a6c5c826 142f549b1f6d5c57 57ef5b71a6ccc824 d1386eaf64c02699 9062d0c7a17c26a1 cd7c1e8a734ff9e5 20746360e7880703 482dcace0a2f1e07 3f412d603bd2e81b be9b1b7c7cf6d262 17ae49aad16444eb 703ca212123c4350 cfc85a493fbeffe1 with fingerprint ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25 . 2016-12-26 10:16:24.994 Host key matches cached key . 2016-12-26 10:16:24.994 Initialised AES-256 SDCTR client->server encryption . 2016-12-26 10:16:24.994 Initialised HMAC-SHA1 client->server MAC algorithm . 2016-12-26 10:16:25.011 Initialised AES-256 SDCTR server->client encryption . 2016-12-26 10:16:25.011 Initialised HMAC-SHA1 server->client MAC algorithm ! 2016-12-26 10:16:25.014 Using username "brisray". . 2016-12-26 10:16:25.061 Server offered these authentication methods: password,publickey . 2016-12-26 10:16:25.061 Prompt (password, "SSH password", <no instructions>, "&Password: ") . 2016-12-26 10:16:28.293 Sent password . 2016-12-26 10:16:29.977 Access granted . 2016-12-26 10:16:29.977 Opening session as main channel . 2016-12-26 10:16:29.977 Opened main channel . 2016-12-26 10:16:30.061 Started a shell/command . 2016-12-26 10:16:30.092 -------------------------------------------------------------------------- . 2016-12-26 10:16:30.092 Using SFTP protocol. . 2016-12-26 10:16:30.092 Doing startup conversation with host. > 2016-12-26 10:16:30.154 Type: SSH_FXP_INIT, Size: 5, Number: -1 < 2016-12-26 10:16:30.162 Type: SSH_FXP_VERSION, Size: 399, Number: -1 . 2016-12-26 10:16:30.162 SFTP version 6 negotiated. . 2016-12-26 10:16:30.162 Server requests EOL sequence "\r\n". . 2016-12-26 10:16:30.162 Server support information (supported2): . 2016-12-26 10:16:30.162 Attribute mask: 8000FFFF, Attribute bits: FFF, Open flags: FF9 . 2016-12-26 10:16:30.162 Access mask: 1F01FF, Open block vector: FFFF, Block vector: FFFF, Max read size: 0 . 2016-12-26 10:16:30.162 Attribute extensions (0) . 2016-12-26 10:16:30.162 Extensions (13) . 2016-12-26 10:16:30.162 newline . 2016-12-26 10:16:30.162 newline@vandyke.com . 2016-12-26 10:16:30.162 version-select . 2016-12-26 10:16:30.162 filename-translation-control . 2016-12-26 10:16:30.162 text-seek . 2016-12-26 10:16:30.162 vendor-id . 2016-12-26 10:16:30.162 check-file . 2016-12-26 10:16:30.162 space-available . 2016-12-26 10:16:30.162 home-directory . 2016-12-26 10:16:30.162 copy-file . 2016-12-26 10:16:30.162 copy-data . 2016-12-26 10:16:30.162 get-temp-folder . 2016-12-26 10:16:30.162 make-temp-folder . 2016-12-26 10:16:30.162 SFTP versions supported by the server: 1,2,3,4,5,6 . 2016-12-26 10:16:30.162 Server software: Syncplify_Me_Server 3.1 (0) by Syncplify, Inc. > 2016-12-26 10:16:30.162 Type: SSH_FXP_EXTENDED, Size: 63, Number: 200 < 2016-12-26 10:16:30.162 Type: SSH_FXP_STATUS, Size: 21, Number: 200 . 2016-12-26 10:16:30.162 We will use UTF-8 strings as it is mandatory with SFTP version 4 and newer . 2016-12-26 10:16:30.162 Changing directory to "/hmsgambia". . 2016-12-26 10:16:30.162 Getting real path for '/hmsgambia' > 2016-12-26 10:16:30.162 Type: SSH_FXP_REALPATH, Size: 20, Number: 272 < 2016-12-26 10:16:30.177 Type: SSH_FXP_NAME, Size: 102, Number: 272 . 2016-12-26 10:16:30.177 Real path is '/hmsgambia' . 2016-12-26 10:16:30.177 Trying to open directory "/hmsgambia". > 2016-12-26 10:16:30.177 Type: SSH_FXP_LSTAT, Size: 23, Number: 519 < 2016-12-26 10:16:30.177 Type: SSH_FXP_ATTRS, Size: 84, Number: 519 . 2016-12-26 10:16:30.177 Getting current directory name. . 2016-12-26 10:16:30.376 Listing directory "/hmsgambia". > 2016-12-26 10:16:30.376 Type: SSH_FXP_OPENDIR, Size: 19, Number: 779 < 2016-12-26 10:16:30.376 Type: SSH_FXP_HANDLE, Size: 13, Number: 779 > 2016-12-26 10:16:30.376 Type: SSH_FXP_READDIR, Size: 13, Number: 1036 < 2016-12-26 10:16:30.392 Type: SSH_FXP_NAME, Size: 1056, Number: 1036 > 2016-12-26 10:16:30.392 Type: SSH_FXP_READDIR, Size: 13, Number: 1292 > 2016-12-26 10:16:30.427 Type: SSH_FXP_CLOSE, Size: 13, Number: 1540 . 2016-12-26 10:16:30.427 ..;D;0;2016-12-26T07:39:20.000Z;3;"user" [0];"group" [0];r--r--r--;0 . 2016-12-26 10:16:30.427 about.htm;-;8399;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:16:30.427 common;D;0;2016-12-26T05:44:36.000Z;3;"user" [0];"group" [0];r--r--r--;0 . 2016-12-26 10:16:30.427 contact.htm;-;6551;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:16:30.427 css;D;0;2016-12-26T06:05:18.000Z;3;"user" [0];"group" [0];r--r--r--;0 . 2016-12-26 10:16:30.428 favicon.ico;-;370070;2016-12-24T19:28:02.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:16:30.428 images;D;0;2016-12-24T19:46:47.000Z;3;"user" [0];"group" [0];r--r--r--;0 . 2016-12-26 10:16:30.428 index.htm;-;6370;2016-12-26T06:57:46.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:16:30.428 js;D;0;2016-12-24T19:17:03.000Z;3;"user" [0];"group" [0];r--r--r--;0 . 2016-12-26 10:16:30.428 preview.htm;-;7050;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:16:30.428 test.txt;-;33;2016-12-26T07:44:37.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:16:30.528 Startup conversation with host finished. . 2016-12-26 10:18:30.531 Server unexpectedly closed network connection * 2016-12-26 10:18:30.533 (ESshFatal) Server unexpectedly closed network connection. . 2016-12-26 10:18:39.829 Looking up host "brisray.com" for SSH connection . 2016-12-26 10:18:39.831 Connecting to 192.168.0.2 port 22 . 2016-12-26 10:18:39.835 We claim version: SSH-2.0-WinSCP_release_5.9.3 . 2016-12-26 10:18:39.886 Server version: SSH-2.0-Syncplify_Me_Server . 2016-12-26 10:18:39.886 We believe remote version has SSH-2 channel request bug . 2016-12-26 10:18:39.886 Using SSH protocol version 2 . 2016-12-26 10:18:39.886 Have a known host key of type rsa2 . 2016-12-26 10:18:39.886 Doing Diffie-Hellman group exchange . 2016-12-26 10:18:39.967 Doing Diffie-Hellman key exchange with hash SHA-1 . 2016-12-26 10:18:40.203 Host key fingerprint is: . 2016-12-26 10:18:40.203 ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25 . 2016-12-26 10:18:40.203 Verifying host key rsa2 0x10001,0xb3a3537f32e14130 903a0b9fa79d7d95 fd8dbce311635eee 61003131a6c5c826 142f549b1f6d5c57 57ef5b71a6ccc824 d1386eaf64c02699 9062d0c7a17c26a1 cd7c1e8a734ff9e5 20746360e7880703 482dcace0a2f1e07 3f412d603bd2e81b be9b1b7c7cf6d262 17ae49aad16444eb 703ca212123c4350 cfc85a493fbeffe1 with fingerprint ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25 . 2016-12-26 10:18:40.222 Host key matches cached key . 2016-12-26 10:18:40.222 Initialised AES-256 SDCTR client->server encryption . 2016-12-26 10:18:40.222 Initialised HMAC-SHA1 client->server MAC algorithm . 2016-12-26 10:18:40.225 Initialised AES-256 SDCTR server->client encryption . 2016-12-26 10:18:40.225 Initialised HMAC-SHA1 server->client MAC algorithm ! 2016-12-26 10:18:40.226 Using username "brisray". . 2016-12-26 10:18:40.295 Server offered these authentication methods: password,publickey . 2016-12-26 10:18:40.295 Prompt (password, "SSH password", <no instructions>, "&Password: ") . 2016-12-26 10:19:25.160 Sent password . 2016-12-26 10:19:26.638 Access granted . 2016-12-26 10:19:26.638 Opening session as main channel . 2016-12-26 10:19:26.640 Opened main channel . 2016-12-26 10:19:26.715 Started a shell/command . 2016-12-26 10:19:26.757 Doing startup conversation with host. > 2016-12-26 10:19:26.819 Type: SSH_FXP_INIT, Size: 5, Number: -1 < 2016-12-26 10:19:26.830 Type: SSH_FXP_VERSION, Size: 399, Number: -1 . 2016-12-26 10:19:26.830 SFTP version 6 negotiated. . 2016-12-26 10:19:26.830 Server requests EOL sequence "\r\n". . 2016-12-26 10:19:26.831 Server support information (supported2): . 2016-12-26 10:19:26.831 Attribute mask: 8000FFFF, Attribute bits: FFF, Open flags: FF9 . 2016-12-26 10:19:26.831 Access mask: 1F01FF, Open block vector: FFFF, Block vector: FFFF, Max read size: 0 . 2016-12-26 10:19:26.831 Attribute extensions (0) . 2016-12-26 10:19:26.831 Extensions (13) . 2016-12-26 10:19:26.831 newline . 2016-12-26 10:19:26.831 newline@vandyke.com . 2016-12-26 10:19:26.831 version-select . 2016-12-26 10:19:26.831 filename-translation-control . 2016-12-26 10:19:26.831 text-seek . 2016-12-26 10:19:26.831 vendor-id . 2016-12-26 10:19:26.831 check-file . 2016-12-26 10:19:26.831 space-available . 2016-12-26 10:19:26.831 home-directory . 2016-12-26 10:19:26.831 copy-file . 2016-12-26 10:19:26.831 copy-data . 2016-12-26 10:19:26.831 get-temp-folder . 2016-12-26 10:19:26.831 make-temp-folder . 2016-12-26 10:19:26.831 SFTP versions supported by the server: 1,2,3,4,5,6 . 2016-12-26 10:19:26.831 Server software: Syncplify_Me_Server 3.1 (0) by Syncplify, Inc. > 2016-12-26 10:19:26.831 Type: SSH_FXP_EXTENDED, Size: 63, Number: 1992 < 2016-12-26 10:19:26.833 Type: SSH_FXP_STATUS, Size: 21, Number: 1992 . 2016-12-26 10:19:26.833 We will use UTF-8 strings as it is mandatory with SFTP version 4 and newer . 2016-12-26 10:19:26.833 Changing directory to "/hmsgambia". . 2016-12-26 10:19:26.833 Getting real path for '/hmsgambia' > 2016-12-26 10:19:26.833 Type: SSH_FXP_REALPATH, Size: 20, Number: 2064 < 2016-12-26 10:19:26.836 Type: SSH_FXP_NAME, Size: 102, Number: 2064 . 2016-12-26 10:19:26.836 Real path is '/hmsgambia' . 2016-12-26 10:19:26.836 Trying to open directory "/hmsgambia". > 2016-12-26 10:19:26.836 Type: SSH_FXP_LSTAT, Size: 23, Number: 2311 < 2016-12-26 10:19:26.839 Type: SSH_FXP_ATTRS, Size: 84, Number: 2311 . 2016-12-26 10:19:26.839 Getting current directory name. . 2016-12-26 10:19:27.035 Directory content loaded from cache. . 2016-12-26 10:19:27.095 Cached directory not reloaded. . 2016-12-26 10:19:27.211 Listing directory "/hmsgambia". > 2016-12-26 10:19:27.211 Type: SSH_FXP_OPENDIR, Size: 19, Number: 2571 < 2016-12-26 10:19:27.231 Type: SSH_FXP_HANDLE, Size: 13, Number: 2571 > 2016-12-26 10:19:27.231 Type: SSH_FXP_READDIR, Size: 13, Number: 2828 < 2016-12-26 10:19:27.238 Type: SSH_FXP_NAME, Size: 1056, Number: 2828 > 2016-12-26 10:19:27.238 Type: SSH_FXP_READDIR, Size: 13, Number: 3084 > 2016-12-26 10:19:27.261 Type: SSH_FXP_CLOSE, Size: 13, Number: 3332 . 2016-12-26 10:19:27.262 ..;D;0;2016-12-26T07:39:20.000Z;3;"user" [0];"group" [0];r--r--r--;0 . 2016-12-26 10:19:27.262 about.htm;-;8399;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:19:27.262 common;D;0;2016-12-26T05:44:36.000Z;3;"user" [0];"group" [0];r--r--r--;0 . 2016-12-26 10:19:27.262 contact.htm;-;6551;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:19:27.262 css;D;0;2016-12-26T06:05:18.000Z;3;"user" [0];"group" [0];r--r--r--;0 . 2016-12-26 10:19:27.262 favicon.ico;-;370070;2016-12-24T19:28:02.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:19:27.262 images;D;0;2016-12-24T19:46:47.000Z;3;"user" [0];"group" [0];r--r--r--;0 . 2016-12-26 10:19:27.262 index.htm;-;6370;2016-12-26T06:57:46.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:19:27.262 js;D;0;2016-12-24T19:17:03.000Z;3;"user" [0];"group" [0];r--r--r--;0 . 2016-12-26 10:19:27.263 preview.htm;-;7050;2016-12-24T17:34:00.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:19:27.263 test.txt;-;33;2016-12-26T07:44:37.000Z;3;"user" [0];"group" [0];rw-rw-rw-;1 . 2016-12-26 10:19:27.395 Startup conversation with host finished. . 2016-12-26 10:21:27.609 Server unexpectedly closed network connection * 2016-12-26 10:21:27.611 (ESshFatal) Server unexpectedly closed network connection. . 2016-12-26 10:21:36.873 Looking up host "brisray.com" for SSH connection . 2016-12-26 10:21:36.873 Connecting to 192.168.0.2 port 22 . 2016-12-26 10:21:36.873 We claim version: SSH-2.0-WinSCP_release_5.9.3 . 2016-12-26 10:21:36.938 Server version: SSH-2.0-Syncplify_Me_Server . 2016-12-26 10:21:36.938 We believe remote version has SSH-2 channel request bug . 2016-12-26 10:21:36.939 Using SSH protocol version 2 . 2016-12-26 10:21:36.941 Have a known host key of type rsa2 . 2016-12-26 10:21:36.942 Doing Diffie-Hellman group exchange . 2016-12-26 10:21:37.014 Doing Diffie-Hellman key exchange with hash SHA-1 . 2016-12-26 10:21:37.256 Host key fingerprint is: . 2016-12-26 10:21:37.256 ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25 . 2016-12-26 10:21:37.256 Verifying host key rsa2 0x10001,0xb3a3537f32e14130 903a0b9fa79d7d95 fd8dbce311635eee 61003131a6c5c826 142f549b1f6d5c57 57ef5b71a6ccc824 d1386eaf64c02699 9062d0c7a17c26a1 cd7c1e8a734ff9e5 20746360e7880703 482dcace0a2f1e07 3f412d603bd2e81b be9b1b7c7cf6d262 17ae49aad16444eb 703ca212123c4350 cfc85a493fbeffe1 with fingerprint ssh-rsa 1024 4e:c0:0c:af:be:a8:9f:46:4a:11:ca:ea:78:35:77:25 . 2016-12-26 10:21:37.287 Host key matches cached key . 2016-12-26 10:21:37.287 Initialised AES-256 SDCTR client->server encryption . 2016-12-26 10:21:37.287 Initialised HMAC-SHA1 client->server MAC algorithm . 2016-12-26 10:21:37.287 Initialised AES-256 SDCTR server->client encryption . 2016-12-26 10:21:37.287 Initialised HMAC-SHA1 server->client MAC algorithm ! 2016-12-26 10:21:37.287 Using username "brisray". . 2016-12-26 10:21:37.357 Server offered these authentication methods: password,publickey . 2016-12-26 10:21:37.357 Prompt (password, "SSH password", <no instructions>, "&Password: ")