ensure /etc/ssh/sshd_config has PrintMotd no

edit /etc/profile and place this at bottom /usr/local/bin/dynmotd

Drop the file into the path /usr/local/bin/dynmotd