<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yes I tried that, and it made no difference. I also didn't think it
was a timeout problem since, I could do an ls, and 1/2 the directory
would come back before the pipe broke.<br>
<br>
On 6/30/2011 12:13 PM, Marcel Gagne wrote:
<blockquote cite="mid:f2151162-0a46-4394-9f66-60da19edb1d4@aceshigh"
type="cite">
<style type="text/css">p { margin: 0; }</style>
<div style="font-family: Times New Roman; font-size: 12pt; color:
rgb(0, 0, 0);"><span>Hello Chris,<br>
<br>
This happens on a lot of routers to a lot of servers. If you
haven't already done so (can't see it in the threads), open up
your ssh_config file (in /etc/ssh) and add the following line.<br>
<br>
ServerAliveInterval 120<br>
<br>
</span><span id="b9f61e0d-e5d1-4d79-82e6-5bbca407d0fc">Or 60 or
something like that. </span><span
id="b9f61e0d-e5d1-4d79-82e6-5bbca407d0fc">Similarly, on the
server side, you can edit the sshd_config file and add the
following.<br>
<br>
ClientAliveInterval 120<br>
<br>
The idea here is that the client, or server, will send a
message over the SSH connection every 120 seconds (or 60
seconds or whatever) thereby making sure the connection
doesn't time out. For the server side, you obviously need to
restart sshd for the changes to take effect.<br>
<br>
Take care out there.<br>
<br>
</span><span id="b9f61e0d-e5d1-4d79-82e6-5bbca407d0fc"><span
name="x"></span>-- <br>
Marcel Gagné<br>
Salmar Consulting Inc. : 519-772-7742<br>
55 King Street West, 7th Floor<br>
Kitchener, Ontario, N2G 4W1<br>
Note: This massagee wos nat speel or gramer-checkered.<span
name="x"></span><br>
</span><br>
<hr id="zwchr">
<blockquote style="border-left: 2px solid rgb(16, 16, 255);
margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0);
font-weight: normal; font-style: normal; text-decoration:
none; font-family: Helvetica,Arial,sans-serif; font-size:
12pt;"><b>From: </b><a class="moz-txt-link-abbreviated" href="mailto:kwlug-disc-request@kwlug.org">kwlug-disc-request@kwlug.org</a><br>
<b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a><br>
<b>Sent: </b>Thursday, June 30, 2011 12:00:01 PM<br>
<b>Subject: </b>kwlug-disc Digest, Vol 31, Issue 39<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: d-link router ssh problems (Chris Bruner)<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 30 Jun 2011 00:49:46 -0400<br>
From: Chris Bruner <a class="moz-txt-link-rfc2396E" href="mailto:cbruner@quadro.net"><cbruner@quadro.net></a><br>
To: KWLUG discussion <a class="moz-txt-link-rfc2396E" href="mailto:kwlug-disc@kwlug.org"><kwlug-disc@kwlug.org></a><br>
Subject: Re: [kwlug-disc] d-link router ssh problems<br>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:4E0C006A.1080006@quadro.net"><4E0C006A.1080006@quadro.net></a><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
On 6/28/2011 2:20 PM, Chris Frey wrote:<br>
> On Tue, Jun 28, 2011 at 01:06:34PM -0400, Chris Bruner
wrote:<br>
>> I'm at quadro which I believes buys internet through
bell.<br>
>> It's not a lot of traffic in my case.<br>
>> eg. ssh somesite<br>
>> ls (is ok)<br>
>> wait 10 minutes<br>
>> ls (1/2 come to screen connection is broken)<br>
>><br>
>> I'm thinking that it is dlink specific. I'm on the
second of 2 routers<br>
>> with the same problem. Unless traffic shaping
started at the same time<br>
>> I changed the router, I think it's the router.<br>
> I remember experiencing something similar a long time
ago, with an old<br>
> Linux box as the router, I think. Unfortunately, I've
forgotten the details.<br>
><br>
> Is wireless a part of the equation anywhere? Could there
be a frequency<br>
> interference that didn't happen with the other router?<br>
It is a wireless router, but the computer where I noticed the
error is a <br>
direct connect. Same configuration as the linksys.<br>
> If you leave something like top running in the window,
does it eventually<br>
> die? If it doesn't die, then it might be a timeout
issue. If it does<br>
> die, then it would seem more fundamental.<br>
So I left top running on a server that was having problems.
No <br>
problems. Then I let the directory sit for a few hours. still
no problems.<br>
<br>
The problem has magically gone away...<br>
<br>
> Can you start a long ssh transfer in one direction and
see if the time<br>
> it takes to to die is consistent?<br>
><br>
> cat /dev/zero | ssh host "cat> /dev/null"<br>
><br>
> - Chris<br>
><br>
><br>
> _______________________________________________<br>
> kwlug-disc mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a><br>
> <a class="moz-txt-link-freetext" href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
><br>
><br>
><br>
><br>
> =======<br>
> Email scanned by PC Tools - No viruses or spyware found.<br>
> (Email Guard: 7.0.0.18, Virus/Spyware Database: 6.17810)<br>
> <a class="moz-txt-link-freetext" href="http://www.pctools.com/">http://www.pctools.com/</a><br>
> =======<br>
><br>
</blockquote>
<br>
</div>
<br>
<br>
<br>
<br>
<font size="2" face="Tahoma"><br>
=======<br>
Email scanned by PC Tools - No viruses or spyware found.<br>
(Email Guard: 7.0.0.18, Virus/Spyware Database: 6.17820)<br>
<a moz-do-not-send="true"
href="http://www.pctools.com/?cclick=EmailFooterClean_51">http://www.pctools.com</a><br>
=======</font>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
kwlug-disc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a>
<a class="moz-txt-link-freetext" href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a>
=======
Email scanned by PC Tools - No viruses or spyware found.
(Email Guard: 7.0.0.18, Virus/Spyware Database: 6.17820)
<a class="moz-txt-link-freetext" href="http://www.pctools.com/">http://www.pctools.com/</a>
=======
</pre>
</blockquote>
<br>
<br/><br/><br><br><FONT face="Tahoma" size="2"><br>=======<br>Email scanned by PC Tools - No viruses or spyware found.<br>(Email Guard: 7.0.0.18, Virus/Spyware Database: 6.17820)<br><a href=http://www.pctools.com/?cclick=EmailFooterClean_51>http://www.pctools.com</a><br>=======</FONT>
</body>
</html>