Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to upload files to a VPS over SFTP. Unfortunately, I'm having a strange problem.

While uploading a file over SFTP as root, the transfer appears to randomly stops somewhere in the first few KB. Filezilla reports that the connection timed out, and Cyberduck reports that the socket was closed. Over SSH the partially uploaded file appears to be truncated to point where the upload stopped.

grep -ir sftp /var/log/* shows no errors.

I'm running centOS with fail2ban and Shorewall, if those are relevant.

I'm fairly new to this, so it might be something really basic.

share|improve this question

Try lowering the MTU. I've encountered trouble in the past with encapsulation and fragmentation. Without a tcpdump I'm not sure if that's the case for you, but it's easy to try.

ifconfig eth(x) mtu 1400

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.