Setting SSH Client Alive Count

This section describes the procedure to set the count for SSH client.

Run the following procedure for each and every server in the topology:
  1. Log in as admusr on the server.
    login: admusr
    Password: <current admin user password>
  2. Run the following command to check out the file sshd_config and grep for variable ClientAliveCountMax in the file :
    $ sudo rcstool co /etc/ssh/sshd_config
    $ sudo grep ^ClientAliveCountMax /etc/ssh/sshd_config
    
  3. Run the following command if no result is returned after running step 2:
    $ sudo echo "ClientAliveCountMax 0" >> /etc/ssh/sshd_config

    Run the following command if some result is returned after running step 2:

    $ sudo sed -i "s/ClientAliveCountMax.*/ClientAliveCountMax 0/g" /etc/ssh/sshd_config
  4. Check in the file sshd_config:
    $ sudo rcstool ci /etc/ssh/sshd_config