home_server:home_server_setup:other_services:ssh

Prev  
 Next

SSH Notes

  • MOTD = Message of the Day
  • sudo vim /etc/issue.net Displays a message before the user begins login, I do not use this.
    • sudo vim /etc/ssh/sshd_config ensure the following option is set Banner /etc/issue.net (you can actually used any path/file)
    • sudo systemctl reload sshd needs to be performed after any change to the configuration file to activate the changes.
  • sudo vim /etc/motd Displays the banner text after login. This usually has some predefined Linux distribution text
  • ls -la /etc/update-motd.d/ to see the scripts that are run after the MOTD is displayed.

The Debian script is very simple:

#!/bin/sh
uname -snrvm

Ubuntu has multiple scripts some that I like and some that I do not like. This system status information script,

/etc/update-motd.d/50-landscape-sysinfo

The main information script is written in python3,

/usr/bin/landscape-systeminfo

python3 agnostic code

  • /mnt/shared/www/dokuwiki/data/pages/home_server/home_server_setup/other_services/ssh.txt
  • Last modified: 2022-06-26 Sun wk25 18:47
  • by baumkp