This is just a simple tweak that I like to add to hosts to remind the user which host they are connecting to. This message will print in the terminal window on ssh login, until its changed or removed.
MotD = Message of the Day. A message that prints to screen on ssh login to a host.
- Remove sym-linked MotD
sudo rm /etc/motd
- Create new MotD
sudo nano /etc/motd
Add custom message, something like:############################################ # WARNING: This is a production Host # # prod.db1.domain.tld - xxx.xxx.xxx.xxx # # Contact: John Doe, johndoe@example.com # ############################################
- Disconnect and reconnect to see MotD