SSH gives us a way to displaya custom welcome message when a user log in.
You can make this message dynamic thanks to update-motd, but here we’ll talk about the SSH built-in feature.
Here is how to do in 3 steps:
Put your message in /etc/issue.net:
$ vim /etc/issue.net
# (Check out cowsay to have a cow tell your msg)Turn on this SSH feature:
vim /etc/ssh/sshd_config Then in /etc/ssh/sshd_config uncomment this line below and save+exit:
#Banner /etc/issue.net
# Just remove the first # character to uncommentRestart SSH:
sudo etc/init.d/sshd restartNow whenever you log in, the message will appear :)