当 ssh 进入我的机器时,我看到以下内容:
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.6-sound-29 x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
* Security certifications for Ubuntu!
We now have FIPS, STIG, CC and a CIS Benchmark.
- http://bit.ly/Security_Certification
* Want to make a highly secure kiosk, smart display or touchscreen?
Here's a step-by-step tutorial for a rainy weekend, or a startup.
- https://bit.ly/secure-kiosk
* Canonical Livepatch is available for installation.
- Reduce system reboots and improve kernel security. Activate at:
https://ubuntu.com/livepatch
0 packages can be updated.
0 updates are security updates.
Last login: Sat Oct 13 18:31:05 2018 from ::1
如何禁用这些广告,而不禁用更新和登录部分(想要制作高度安全的信息亭、智能显示屏或触摸屏?...部分)?
使用 SSH 登录计算机时,在到达命令提示符之前会显示大量文本。这来自motd(每日消息)过程。文本在数量上可能有些压倒性。
要减少或大部分消除此文本,请编辑
/etc/default/motd-news
并更改ENABLED=1
为ENABLED=0
.在 Ubuntu 18.04+ 上,这可以通过从
/etc/update-motd.d
.