How to restore the DigitalOcean MOTD?

Posted July 29, 2018 2k views
Ubuntu 16.04Initial Server Setup

I backed up /etc/bash.bashrc and made some changes to it, then I decided to revert to my backup version. For some reason now the default DigitalOcean MOTD no longer appears when I login. I always liked that message and want to restore it but I’m not sure where to begin. Since the original /etc/bash.bashrc is back in place, I don’t know what could be different.

It looks like all the original scripts are still in place in /etc/update-motd.d/, I just don’t know the proper way to run them at login.

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.

Submit an Answer
1 answer

Hello, @insanityfarm

I believe this question was already asked in our community and you can check the other question using this link -

Is the MOTD displayed when you log in through the remote console? Make sure that your sshd config allows the MOTD to be shown on login:

UsePAM yes
PrintMotd no

Don’t forget to restart the ssh server/daemon after modifying the config file:

sudo service ssh restart