I am writing a Bash script that performs several commands on remote machines via SSH.
The problem is when one of those machines is unreachable, I would like the script to skip and move on instead, it stays stuck until and after a long time it gives a connection timed out.
Is there a way for setting a shorter timeout in an ssh
command?