December 2018
Beginner
826 pages
22h 54m
English
Providing your PrintMotd setting is set to yes, you can have users see the contents of /etc/motd when they log in.
First, ensure that it is set to yes in the SSH daemon config:
#PermitTTY yesPrintMotd yes#PrintLastLog yes
Next, restart the SSH daemon, and then modify the /etc/motd file to something sensible. Alternatively, you can use the following command:
sudo sh -c 'echo "This is a testing system, how did you get here?" > /etc/motd'
This message will now be printed whenever you log in.