Updated: 28 September 2026 · Applies to: AlmaLinux 9, Rocky Linux 9, Ubuntu 24.04 and Debian 12

Show a message to everyone who logs in over SSH, for example a legal notice or maintenance information.

After login (message of the day)

Edit /etc/motd as root and write your text. It appears after a successful login.

Before login (banner)

  1. Write the text to /etc/issue.net.
  2. In /etc/ssh/sshd_config, set Banner /etc/issue.net.
  3. Restart SSH: systemctl restart sshd (or ssh on Ubuntu and Debian).

Example: "Authorised access only. All activity is logged."

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket