For the ssh client it is possible to define a connection timeout . Would be great if slex supported this.
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.