To make the keep alive settings available for all connecting clients, it is recommended to configure the settings in server side.
Modify the /etc/ssh/sshd_config
and add the following lines :
After setting this, you have to restart the SSH server by issuing this command :
sudo service ssh restart
Note that restarting SSH server will not disconnect existing connecting clients via SSH.