ssh timeout

nitin.gizare at wipro.com nitin.gizare at wipro.com
Fri Sep 25 04:44:58 UTC 2009


HI

Thanks I will test it

Nitin

-----Original Message-----
From: redhat-sysadmin-list-bounces at redhat.com
[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Hearn,
Stan J.
Sent: Friday, September 25, 2009 8:42 AM
To: redhat-sysadmin-list at redhat.com
Subject: RE: ssh timeout

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

--
redhat-sysadmin-list mailing list
redhat-sysadmin-list at redhat.com
https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list




More information about the redhat-sysadmin-list mailing list