Re: how to force an ssh client timeout
From: k l (yoda_2732002_at_yahoo.com)
Date: Mon, 6 Sep 2004 20:42:27 -0700 (PDT) To: firstname.lastname@example.org
Thanks for your response. Unfortunately, I do not
have control over the heterogeneous remote
servers(I am working with a distributed systems
I need to do this on the ssh client side e.g. if I
can not log into a given machine in 10 seconds
I want to terminate/close the connection and move
on to the next machine. Please note that you may
a TCP connection to the remote server but it
may, for some reason, just stay/hang there and
you may not be able to log in(I do not have
control over the sshd servers and how they are
configured). In about 2 hours the default TCP timeout
usually takes care of the problem but this is way
too long -- I would prefer a faster solution.
--- Wee Yeh Tan <email@example.com> wrote:
> The following 2 parameters in your sshd_config are
> probably what you need.
> ClientAliveInterval <int>
> ClientAliveCountMax <int>
> On Fri, 3 Sep 2004 18:42:28 -0700 (PDT), k l
> <firstname.lastname@example.org> wrote:
> > Hello,
> > Is there a way to force an ssh client to timeout
> > when the server is unreachable? I found the
> > following post from 2001 dealing with this
> > Has anything changed? Do you know of a
> > good solution/approach/new options? I am writing
> > a script that connects via ssh to a list of
> > hundred servers
> > and I do not want this process to be delayed or
> > stalled by a small number of hosts that for
> > some reason are causing delays/freezes, etc.
> > I am using OpenSSH_3.6.1p2 on RedHat Linux.
> > Any comments/suggestions will be appreciated.
> > Thanks,
> > kamen
> > _______________________________
> > Do you Yahoo!?
> > Win 1 of 4,000 free domain names from Yahoo! Enter
> > http://promotions.yahoo.com/goldrush
> Just me,
> Wire ...
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.