How to disable ssh motd welcome message on Ubuntu Linux
Here's how you can disable the SSH Message of the Day (MOTD) welcome message on Ubuntu Linux:
- Open a terminal and log in to your Ubuntu Linux system.
- Create a new file in the
/etc/pam.ddirectory using the following command:
sudo nano /etc/pam.d/sshd- Add the following line to the file:
session optional pam_motd.so- Save the changes and exit the Nano text editor.
- Restart the SSH service to apply the changes:
sudo service ssh restartThe SSH Message of the Day welcome message should now be disabled and will no longer be displayed when you log in via SSH.
