Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > Linux > Tip of the day > How to setup SSH timeout in shell script ?

How to setup SSH timeout in shell script ?

All the versions of this article: [English] [français]

To define a timeout of 5 seconds when trying a ssh connection to access host server:

ssh -o ConnectTimeout=5  host

Any message or comments?

comments powered by Disqus