Knowledge base dedicated to Linux and applied mathematics.
Home > Linux > Tip of the day > How to setup SSH timeout in shell script ?
25 January 2014, by
All the versions of this article:
To define a timeout of 5 seconds when trying a ssh connection to access host server:
ssh -o ConnectTimeout=5 host
This website is useful to you? Then it's a good reason to make a donation.
Your gratitude and finance help will motivate me to continue this development.
Blog template built with Bootstrap and Spip by Nadir Soualem @mathlinux.
Back to top