Whenever you log in to a remote server via SSH you'll be greeted with some messages prior to your shell prompt. It could be SSH-specific messages or generic terminal login messages.
These banner or MOTD (Message Of The Day) messages could be used to display some useful messages though some would prefer to just go straight to the command prompt.
You can disable or edit these banner / MOTD messages when logging in to an SSH server by configuring some options on the server.
$ sudo vi /etc/ssh/sshd_config [sudo] password for user:
Banner none
Make sure the line is not commented by removing # at the start if present.
Set the value to a file and add your own text to create custom banner message.
PrintMotd no
Make sure the line is not commented by removing # at the start if present.
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 script or add your own to create custom message.
Comment anonymously. Login not required.