Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 727 Bytes

File metadata and controls

35 lines (24 loc) · 727 Bytes

MOTD

Customize your MOTD login message in Debian and Ubuntu

Installation

  1. 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.

  2. Now we'll place our shell script into /etc/profile.d

    /etc/profile.d/welcome.sh
  3. Give the file the necessary rights to execute

    chmod +x /etc/profile.d/welcome.sh
    
  4. Restart the ssh service

     service ssh reload

© 2019 - 2023 Panda-Network

Webseite: Panda-Network.de
Support Discord-Server