LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-19-2009, 04:28 PM   #1
tennis_slacker
Member
 
Registered: Apr 2008
Location: Idaho
Distribution: Slackware
Posts: 92

Rep: Reputation: 17
ssh error during backup from XP to linux server


I've been searching for solutions for hours, but I'm stuck.

I have Ubuntu 8.04 server setup with openssh. I'm using sftp with Syncback to backup my Mom's XP machine. It works just fine, except that after several hours or at random times I'll get the following error:

Code:
sshd[26837]: Read error from remote host xx.xx.xx.xxx: Connection timed out
After a couple errors like this the Syncback program from my Mom's machine will abort.

I tried adding:

Code:
TCPKeepAlive yes
ClientAliveInterval 3600
to my sshd_config on the server, but it didn't resolve the issue. I don't know if I need to increase this ClientAliveInterval or if the problem is somewhere else within XP or Syncback or what.

Any help or ideas would be greatly appreciated. Thanks.
 
Old 04-20-2009, 02:47 PM   #2
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Rep: Reputation: 42
Quote:
Originally Posted by tennis_slacker View Post
I tried adding:

Code:
TCPKeepAlive yes
ClientAliveInterval 3600
to my sshd_config on the server, but it didn't resolve the issue. I don't know if I need to increase this ClientAliveInterval or if the problem is somewhere else within XP or Syncback or what.

Any help or ideas would be greatly appreciated. Thanks.
You should try *reducing* the ClientAliveInterval. Most consumer grade PAT/NAT routers timeout idle connections after 30s or 60s so if you set your ClientAliveInterval (or ServerAlive on your client's config) to some shorter period, that might stop those connections from getting closed. I used 25s on my servers generally.

- Arch
 
Old 04-22-2009, 01:06 PM   #3
tennis_slacker
Member
 
Registered: Apr 2008
Location: Idaho
Distribution: Slackware
Posts: 92

Original Poster
Rep: Reputation: 17
I've set the sshd_config with:

Code:
TCPKeepAlive no
ClientAliveInterval 25
ClientAliveCountMax  5
After reading through the man pages, it's what made sense to me. I haven't noticed any problems yet, but it was so sporadic before that it's difficult to diagnose.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC Over SSH | Linux laptop -> Linux SSH Server -> Windows VNC Server jakestaby Linux - Networking 3 01-28-2009 02:33 PM
rsync server backup through ssh tunnel issue vidhut Linux - Networking 1 01-06-2009 03:53 AM
SSH Error to remote Server shawnbishop Linux - Software 1 06-04-2007 01:50 AM
SSH server error on connect rlbewick Mandriva 2 05-02-2005 02:43 PM
Windows to Linux ssh backup? SSBN Linux - Networking 1 03-20-2004 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration