Changing Login Display Message

This section describes the procedure to change the login display message.

Perform the following steps to change the login display message:
  1. Log in as admusr on the server.
    login: admusr
    Password: <current admin user password>
  2. Run the following command to create a backup copy of sshd_config:
    $ sudo cd /etc/ssh
    $ sudo cp sshd_config sshd_config.bak
  3. Perform the following steps to edit the sshd configuration file:
    1. Edit the sshd configuration file.
      $ sudo rcstool co sshd_config
      $ sudo vi sshd_config
    2. Uncomment and edit this line:
      $ Banner /some/path
    3. To this:
      Banner /etc/ssh/sshd-banner
    4. Save and exit the vi session.
  4. Perform the following steps to edit the banner file.
    1. Edit the banner file.
      $ sudo vi sshd-banner
    2. Add and format the desired text.
    3. Save and exit the vi session.
  5. Run the following command to restart the sshd service:
    $ sudo service sshd restart
  6. Perform the following steps to verify the changes:
    1. Test the change. Repeat steps 4 and 5 until the message is formatted correctly.
      $ sudo ssh <current server name>
    2. Verify message line feeds are formatted correctly.
      $ exit
  7. Run the following command to check the files into rcs to preserve changes during upgrades:
    $ sudo rcstool init /etc/ssh/sshd-banner
    $ sudo rcstool ci sshd_config