ssh timeout

Hearn, Stan J. stan.hearn at nscorp.com
Fri Sep 25 03:11:32 UTC 2009


check out man ssh_config and look at the ConnectionTimeout option.

I have found that if I background the process I don't have to worry about the stragglers.

for H in `cat my-system.lst`
do
   ssh $H uptime > $H.uptime &
done

________________________________________
From: redhat-sysadmin-list-bounces at redhat.com [redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com [nitin.gizare at wipro.com]
Sent: Thursday, September 24, 2009 10:16 PM
To: redhat-sysadmin-list at redhat.com
Subject: ssh timeout

HI

I am running script using ssh to capture load of some parameters of remote machine.
But if one of machine is down script does not go forward and will be waiting for to come up and complete ssh connections.
I would like to set some time out in which case if machine does not response it should time out on ssh and proceed for next steps.

Please help me with this settings

Rgds
Nitin




More information about the redhat-sysadmin-list mailing list