Whenever you log in to a remote SSH server, you'll be greeted with some messages before getting the shell prompt. The messages could be directly from SSH or a generic terminal login message.
The messages are called banner or MOTD (Message Of The Day), and while it could display valuable messages, some would consider it a nuisance and want to go straight to the command prompt.
You can disable or edit these banners or MOTD messages when you log in to an SSH server by configuring SSHd on the server.
$ sudo vi /etc/ssh/sshd_config [sudo] password for user:
Banner none
Add the line if it doesn't already exist and remove # at the beginning of the line if it exists.
Set the value to the path of a file and add your text to create a custom banner message to the file.
PrintMotd no
Add the line if it doesn't already exist and remove # at the beginning of the line if it exists.
Set the value to yes and change the /etc/motd file for custom Message Of The Day.
$ sudo chmod -x /etc/update-motd.d/*
Selectively disable existing scripts or add your own to create a custom message.
Comment anonymously. Login not required.