Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Disable Ubuntu dynamic login MOTD #271

Closed
@ancoron

Description

@ancoron

Is your feature request related to a problem? Please describe.

Although I have explicitly set the following, the standard dynamic Ubuntu MOTD is still displayed upon login via SSH:

ssh_print_motd: false
ssh_print_last_log: false
ssh_banner: false
ssh_print_debian_banner: false

Example:

Welcome to Ubuntu 18.04.3 LTS (GNU/Linux <redacted> x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Fri Apr  3 09:09:09 UTC 2020

  System load:  0.08              Processes:           666
  Usage of /:   13.9% of 7.69GB   Users logged in:     1
  Memory usage: 15%               IP address for eth0: <redacted>
  Swap usage:   0%


0 packages can be updated.
0 updates are security updates.

Describe the solution you'd like

The following lines in /etc/pam.d/sshd should be commented out or removed when variable ssh_print_motd is false and the OS is Ubuntu:

# Print the message of the day upon successful login.
# This includes a dynamically generated part from /run/motd.dynamic
# and a static (admin-editable) part from /etc/motd.
session    optional     pam_motd.so  motd=/run/motd.dynamic
session    optional     pam_motd.so noupdate

Describe alternatives you've considered

All MOTD or banner related variables set to false.

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions