Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.