Skip to content

Instantly share code, notes, and snippets.

@hvmonteiro
Last active July 4, 2025 01:00
Show Gist options
  • Save hvmonteiro/7f897cd8ae3993195855040056f87dc6 to your computer and use it in GitHub Desktop.
Save hvmonteiro/7f897cd8ae3993195855040056f87dc6 to your computer and use it in GitHub Desktop.
LEGAL Notices for Login/MOTD unix banners
@hvmonteiro
Copy link
Author

Show message before Loging in

Tty Consoles

Add to /etc/issue

Remote Consoles (SSH/Telnet)

Add to /etc/issue.net

SSH Console

edit /etc/ssh/sshd_config
and enable/uncomment Banner:
Banner /etc/issue.net

Show message after loging in:

System wide message

Add to /etc/motd

@t94xr
Copy link

t94xr commented Jul 4, 2025

I used a symlink, put a file issue.net in my ~/.local/issue.net -> /etc/issue.net

┌────────────────────────────────────────────────────┐
│     UNAUTHORIZED ACCESS IS STRICTLY PROHIBITED     │
└────────────────────────────────────────────────────┘

image

Clean and simple. Sadly this doesn't allow for any dynamic content just plain text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment