SSH - ssh ConnectTimeout option

by
Jeremy Canfield |
Updated: December 22 2020
| SSH articles
With the ssh command, the ConnectTimeout option can, as the name implies, timeout if the connection fails after a certain period of time. In this example, the connection will time out after 5 seconds.
ssh -o ConnectTimeout=5 john.doe@server1.example.com
Did you find this article helpful?
If so, consider buying me a coffee over at