Enabling SSH Warning Banner

This section describes the procedure to enable the SSH warning banner.

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 variableBanner in the file :
    $ sudo rcstool co /etc/ssh/sshd_config
    $ sudo grep Banner /etc/ssh/sshd_config
    
  3. Run the following command if no result is returned after running step 2:
    $ sudo echo “Banner /etc/issue" >> /etc/ssh/sshd_config

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

    $ sudo sed -i '/Banner/c\Banner \/etc\/issue' /etc/ssh/sshd_config
  4. Check in the file sshd_config:
    $ sudo rcstool ci /etc/ssh/sshd_config