Trace: SSH Notes

SSH Notes

Prev  
 Next

SSH Notes

SSH Login Message

Acronyms and Definitions

  • MOTD = Message of the Day

Login Messages

  • 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

Login Scripts

Debian

  • 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

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

Python Code

python3 agnostic code

/app/www/public/data/pages/home_server/home_server_setup/other_services/ssh.txt · Last modified: 2023-12-26 Tue wk52 11:38
CC Attribution-Share Alike 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International