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.

×
1 answer

Hello, @insanityfarm

I believe this question was already asked in our community and you can check the other question using this link - https://www.digitalocean.com/community/questions/message-of-the-day-motd-not-displayed

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:

/etc/ssh/sshd_config
UsePAM yes
PrintMotd no

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

sudo service ssh restart

Regards,
Alex

Submit an Answer