SSH and Connection timed out

DJE007

Senior member
Nov 20, 1999
503
0
0
I have scripts that runs via ssh to about 300 boxes if one is down it takes so long to get the Connection timed out error, is there a way to down this time from about 5 mins that's how long it takes to time out.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
ConnectionAttempts
Specifies the number of tries (one per second) to make before
exiting. The argument must be an integer. This may be useful in
scripts if the connection sometimes fails. The default is 1.

ConnectTimeout
Specifies the timeout (in seconds) used when connecting to the
ssh server, instead of using the default system TCP timeout.
This value is used only when the target is down or really
unreachable, not when it refuses the connection.

Read the man page. :confused: