[CoLoCo] ssh timeout issue

siblog tehsiblog at gmail.com
Mon Aug 4 20:21:45 BST 2008


Errored out again. I copied the error down below (server names altered) -

/home/user $ ssh user at linuxserver.bla.com
Last login: Mon Aug  4 04:02:09 2008 from unixserver.bla.com
[user at linuxserver~]$ Read from remote host linuxserver.bla.com: Connection
timed out
Connection to linuxserver.bla.com closed.

-Simon

On Mon, Aug 4, 2008 at 10:23 AM, siblog <tehsiblog at gmail.com> wrote:

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


More information about the Ubuntu-us-co mailing list