ClientAliveInterval 300 ClientAliveCountMax 3333 TCPKeepAlive yes
The run:
service sshd restart
Host * <...> ServerAliveInterval 300 ServerAliveCountMax 3333