Login Banner tested working with latest Red Hat, Rocky Linux, Ubuntu and Raspberry Pi OS.
Copy the contents inside bash profile.txt to /etc/profile of your server.
vi /etc/profile
paste
Bash MOTD Login Banner for Linux servers with important stats shown
GPL-3.0