Site Tools


linux:ubuntu:odd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:ubuntu:odd [2021-03-21]
dcai
linux:ubuntu:odd [2021-03-21] (current)
dcai
Line 17: Line 17:
 # ~/.config/systemd/user/srv.service # ~/.config/systemd/user/srv.service
 </code> </code>
 +
 +=== disable motd for ssh ===
 +  * /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/update-motd.d: this has scripts to generate motd
 +  * PrintLastLog no in sshd_config: disable last login message
linux/ubuntu/odd.1616324973.txt.gz · Last modified: 2021-03-21 by dcai