<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'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"><<a href="mailto:mitch@kci.net">mitch@kci.net</a>></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'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>
> Can you keep an interactive session open for longer than 2 hours? The<br>
> firewall may be cutting off all connections at a given time, that is<br>
> pretty restrictive, but possible. The first thought though, and it<br>
> looks like you've already thought of it, is that the connection is<br>
> getting dropped due to inactivity. I haven't played much with the keep<br>
> alive option in SSH so I'll leave that to somebody else to answer, but<br>
> my question would be if there is no traffic over the connection then<br>
> does it really need to stay open. Can you start up the process on the<br>
> Linux box and let it run in the background? If it is producing data<br>
> you can write that to disk and retrieve it later.<br>
> Just a thought for a work around.<br>
><br>
> Good Luck,<br>
> Mike Robbert<br>
><br>
> On Mon, Aug 4, 2008 at 8:45 AM, siblog <<a href="mailto:tehsiblog@gmail.com">tehsiblog@gmail.com</a>> wrote:<br>
> I have been wrestling with a ssh timeout issue and can't seem<br>
> to find an answer that is working for me. Some important<br>
> details are.....The connection is between a HP-UX Unix server<br>
> and a Ubuntu Linux server. The Unix server is behind a<br>
> firewall and the Linux server is outside of the firewall. I<br>
> can't alter the /etc/ssh/sshd_config files on either server<br>
> but do have .ssh/config files that I have been playing within<br>
> the users directory on both servers.<br>
><br>
> As far as the process and issue....I basically have a script<br>
> that is ssh'ing from the Unix server into the Linux server and<br>
> kicking off another script that runs on the Linux server.<br>
> Based on the volume of data the script is processing on the<br>
> Linux server it sometimes takes up to three hours to run. At<br>
> around the 1.5 - 2 hour mark the ssh connection fails with a<br>
> timeout error. I have been trying many different things with<br>
> the users .ssh/config file including adding "KeepAlive yes"<br>
> entries as well as playing with "ClientAliveInterval",<br>
> "ClientAliveCountMax", "ServerAliveInterval" and<br>
> "ServerAliveCountMax". Does anyone know what I could be<br>
> missing or what could be going wrong?<br>
><br>
> Thanks,<br>
><br>
> -Simon<br>
><br>
><br>
> --<br>
> 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:<br>
> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-co" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-co</a><br>
><br>
><br>
><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>