On my home Kubuntu 11.10 machine I have discovered that I cannot upload via FTP any single files that is larger than 5791 bytes. I have tried to two different FTP servers (not anonymous rather my employer's FTP servers) using Konqueror, GFTP, and Krusader. Also, to both of those servers other people can upload larger files just fine. I do not know if the issue is my Kubuntu desktop or possibly my router / ISP blocking. I tried changing the MTU as per this question however it did not resolve the issue. How might I troubleshoot that? I don't have any other computers here at home to FTP to / from.
I have no problem uploading larger files via SSH from this same machine, the problem only manifests with FTP. Note also that I can only connect with passive mode (-p on the CLI).
Here is example output:
ftp> put smallFile.txt
local: smallFile.txt remote: smallFile.txt
227 Entering Passive Mode (50,63,78,1,198,219)
150 Accepted data connection
226-File successfully transferred
226 0.837 seconds (measured here), 48.98 bytes per second
41 bytes sent in 0.00 secs (494.3 kB/s)
ftp> put largeFile.txt
local: largeFile.txt remote: largeFile.txt
227 Entering Passive Mode (50,63,78,1,198,224)
150 Accepted data connection
421 Service not available, remote server has closed connection
7785 bytes sent in 0.00 secs (62315.9 kB/s)
ftp>
At the line 150 Accepted data connection I will wait for quite some time before the 421 Service not available message appears.