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 investigating a timeout issue with an SFTP process running on a remote server and noticed that our server's version of OpenSSH is 3.9 while the remote server is running version 4.3. Would this potentially cause a problem?

By the way, we've already added the following to the ssh_config file and it doesn't seem to be helping:

ServerAliveInterval 100
ServerAliveCountMax 5

Here's the error message we're getting:

sftp> Connecting to xxx.xxx.com...
sftp> Uploading Advisor_20120113.csv to /home/me/Advisor_20120113.csv
Disconnecting: Timeout, server not responding.
Write failed: Connection timed out
Couldn't read packet: Connection reset by peer

Before adding the ServerAlive property values, this is the error message that was showing up in the logs:

sftp> Uploading Advisor_20111113.csv to /home/me/Advisor_20111113.csv
Read from remote host xxx.xxx.com: Connection timed out
Couldn't send packet: Connection reset by peer

The weird thing is that sometimes the transfer works just fine and all the files are copied over. While other times, only one file gets transferred.

share|improve this question
    
If you connect a normal ssh session, does it have timeout issues as well? –  Chris S Jan 19 '12 at 19:45
    
@ChrisS - Unfortunately, I only have SCP/SFTP access to the server, not SSH. –  Brian Jan 19 '12 at 19:50
    
Possible bad NIC card or shady network connection? You can check dmesg for odd messages/errors concerning the NIC. –  Tim Jan 19 '12 at 21:21
    
So I tried using SCP instead of SFTP and it didn't timeout - weird. –  Brian Jan 20 '12 at 12:57

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.