2021-04-19 13:09:21 +02:00
2021-04-19 13:09:21 +02:00
2021-04-19 09:58:13 +02:00
2021-04-19 13:06:38 +02:00

Motd

Here is motd for Claranet.

Preparation

Make sure you have the PrintMotd option set to yes in your sshd config.

You could also want to disable the "last login" information by configuring PrintLastLog to no.

Don't forget to restart sshd after.

Installation

Banner only

Copy motd file to /etc/motd:

curl -s https://raw.githubusercontent.com/claranet/motd/master/motd -o /etc/motd

Dynamic with script

Run the install.sh script as admin:

sudo ./install.sh

It is compatible with update-motd used by Ubuntu.

For all other distributions you will have to add the following line to /etc/pam.d/sshd:

session    optional   pam_exec.so          stdout /etc/update-motd.d/00-basic
Description
Claranet Unix Motd
Readme 107 KiB
Languages
Shell 100%