Enabling the welcome message when logging in via SSH

So when I first created my first droplet on Digital Ocean i had a pretty nice and useful message when logging in to my droplet, but meanwhile I messed something up and can’t find what I did and how to change it back as it was.

The image included show the new droplet I created moments ago, and on the right the old droplet I have. All those nifty information is gone on my old one and I have no idea how to get them back. If someone can help me I would really appreciate it!



This comment has been deleted

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It’s called MOTD (message of the day). It’s generated by update_motd by running all the scripts found on /etc/update-motd.d/.

I’m not familiar with how and when it runs, but apparently it might be invoked by a PAM module (pam_motd) by ssh after a successful login. Perhaps PAM is disabled on your sshd config?

I’m using mosh instead of ssh and apparently it doesn’t display motd either.