What does ConnectTimeout in ssh_config mean?

Local and remote os are all Debian8.
I want to keep ssh alive for a long time.
The configuration file /etc/ssh/ssh_config on my client(local) side.

Host *
    ServerAliveInterval 60
    ServerAliveCountMax 10000

The configuration file /etc/ssh/sshd_config on my server(remote) side.

/etc/ssh/sshd_config
TCPKeepAlive yes
ClientAliveInterval 60
ClientAliveCountMax 10000

It was tested that ssh connection can keep alive for a long time. There is a parameter in /etc/ssh/ssh_config ,ConnectTimeout , What does it mean?
Do ConnectTimeout 0 or ConnectTimeout 1000 take different effect?


Solution 1:

man ssh_config

/ConnectTimeout

ConnectTimeout Specifies the timeout (in seconds) used when connecting to the SSH server, instead of using the default system TCP timeout. This timeout is applied both to establishing the connection and to performing the initial SSH protocol handshake and key exchange.

Solution 2:

How I remember, Connection timeout is a time when server writing for connection if host unreachable. If you fill it by 0 and client will has connection problems server will close connection immidietly when clients connection losts