Customize your MOTD login message in Debian and Ubuntu
-
We need to turn off (yes, off) SSH's PrintMotd option by editing /etc/ssh/sshd_config:
PrintMotd no
This stops printing from the plaintext /etc/motd and lets us print our own content.
-
Now we'll place our shell script into /etc/profile.d
/etc/profile.d/welcome.sh
-
Give the file the necessary rights to execute
chmod +x /etc/profile.d/welcome.sh
-
Restart the ssh service
service ssh reload
Webseite: Panda-Network.de
Support Discord-Server