How to disable ssh motd welcome message on Ubuntu Linux

www.lau‮c.irutt‬om
How to disable ssh motd welcome message on Ubuntu Linux

To disable the ssh motd (message of the day) welcome message on Ubuntu Linux, you can edit the /etc/ssh/sshd_config file and set the PrintMotd option to no.

Here is an example of how to disable the ssh motd welcome message:

  1. Open the /etc/ssh/sshd_config file in a text editor:
sudo nano /etc/ssh/sshd_config
  1. Find the PrintMotd option in the file and set it to no:
PrintMotd no
  1. Save the file and exit the text editor.

  2. Restart the ssh daemon to apply the changes:

sudo systemctl restart ssh

This will disable the ssh motd welcome message, and it will no longer be displayed when you log in to the system via ssh.

Note that the ssh motd welcome message is not the only message that is displayed when you log in to the system via ssh. There may be other messages, such as the /etc/motd message or the /etc/issue message, that are still displayed. To disable these messages, you will need to edit the appropriate configuration files or remove the files altogether.

Created Time:2017-10-28 21:39:02  Author:lautturi