Re: how to force an ssh client timeout
From: Senthil Kumar (senthilkumar_sen_at_hotpop.com)
To: "k l" <firstname.lastname@example.org> Date: Mon, 6 Sep 2004 11:04:48 +0530
Im using OpenSSH 3.8.1 and the directive TCPKeepAlive of ssh for the same
purpose as u noted.Hope this helps.
TCPKeepAlive : Specifies whether the system should send TCP keepalive
messages to the other side. If they are sent, death of the connection or
crash of one of the machines will be properly noticed.
However,this means that connections will die if the route is down
temporarily, and some
people find it annoying.The default is ``yes'' (to send TCP
keepalive messages), and the client will notice if the network goes down or
host dies. This is important in scripts, and many users want it
too.To disable TCP keepalive messages, the value should be set to ``no''.
----- Original Message -----
From: "k l" <email@example.com>
Sent: Saturday, September 04, 2004 7:12 AM
Subject: how to force an ssh client timeout
> 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 several
> 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.
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter now.
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.751 / Virus Database: 502 - Release Date: 9/5/2004