<div dir="ltr">I will give TCPKeepAlive a try<br><br>Well I am currently just trying to test this by manually sshing (via putty) into the linux box via the unix box and leaving an idle open connection. I get the broken connection error about 1.5 hours into it. I don&#39;t have the actual error on hand right now but I am running a test with the TCPKeepAlive so I will either post the error or post that it worked in a couple of hours. Thanks!<br>
<br>-Simon<br><br><div class="gmail_quote">On Mon, Aug 4, 2008 at 10:05 AM, Mitch Mahan <span dir="ltr">&lt;<a href="mailto:mitch@kci.net">mitch@kci.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
TCPKeepAlive yes should fix this problem, I wouldn&#39;t recommend messing<br>
with any of the timers...<br>
<br>
Where exactly are you getting this error? Could you paste it?<br>
<font color="#888888"><br>
- Mitch<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Mon, 2008-08-04 at 09:18 -0600, Michael Robbert wrote:<br>
&gt; Can you keep an interactive session open for longer than 2 hours? The<br>
&gt; firewall may be cutting off all connections at a given time, that is<br>
&gt; pretty restrictive, but possible. The first thought though, and it<br>
&gt; looks like you&#39;ve already thought of it, is that the connection is<br>
&gt; getting dropped due to inactivity. I haven&#39;t played much with the keep<br>
&gt; alive option in SSH so I&#39;ll leave that to somebody else to answer, but<br>
&gt; my question would be if there is no traffic over the connection then<br>
&gt; does it really need to stay open. Can you start up the process on the<br>
&gt; Linux box and let it run in the background? If it is producing data<br>
&gt; you can write that to disk and retrieve it later.<br>
&gt; Just a thought for a work around.<br>
&gt;<br>
&gt; Good Luck,<br>
&gt; Mike Robbert<br>
&gt;<br>
&gt; On Mon, Aug 4, 2008 at 8:45 AM, siblog &lt;<a href="mailto:tehsiblog@gmail.com">tehsiblog@gmail.com</a>&gt; wrote:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; I have been wrestling with a ssh timeout issue and can&#39;t seem<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; to find an answer that is working for me. Some important<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; details are.....The connection is between a HP-UX Unix server<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; and a Ubuntu Linux server. The Unix server is behind a<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; firewall and the Linux server is outside of the firewall. I<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; can&#39;t alter the /etc/ssh/sshd_config files on either server<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; but do have .ssh/config files that I have been playing within<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; the users directory on both servers.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; As far as the process and issue....I basically have a script<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; that is ssh&#39;ing from the Unix server into the Linux server and<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; kicking off another script that runs on the Linux server.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Based on the volume of data the script is processing on the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Linux server it sometimes takes up to three hours to run. At<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; around the 1.5 - 2 hour mark the ssh connection fails with a<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; timeout error. I have been trying many different things with<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; the users .ssh/config file including adding &quot;KeepAlive yes&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; entries as well as playing with &quot;ClientAliveInterval&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;ClientAliveCountMax&quot;, &quot;ServerAliveInterval&quot; and<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;ServerAliveCountMax&quot;. Does anyone know what I could be<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; missing or what could be going wrong?<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Thanks,<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; -Simon<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; --<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Ubuntu-us-co mailing list<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:Ubuntu-us-co@lists.ubuntu.com">Ubuntu-us-co@lists.ubuntu.com</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Modify settings or unsubscribe at:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-co" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-co</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="Wj3C7c">Ubuntu-us-co mailing list<br>
<a href="mailto:Ubuntu-us-co@lists.ubuntu.com">Ubuntu-us-co@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-co" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-co</a><br>
</div></div></blockquote></div><br></div>