Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |
| linux:ubuntu:odd [2021-03-21] – dcai | linux:ubuntu:odd [2021-03-21] (current) – dcai |
|---|
| |
| === disable motd for ssh === | === disable motd for ssh === |
| /etc/pam.d/sshd: remove the lines with motd | * /etc/pam.d/sshd: remove the lines with motd |
| /etc/ssh/sshd_config: PrintMotd should be no, I think this only makes sense when pam is disabled | * /etc/ssh/sshd_config: PrintMotd should be no, I think this only makes sense when pam is disabled |
| /etc/update-motd.d: this has scripts to generate motd | * /etc/update-motd.d: this has scripts to generate motd |
| | * PrintLastLog no in sshd_config: disable last login message |