如何在 SSH 到 Ubuntu 机器时禁用广告

Fer*_*big 11 ssh motd

当 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
Run Code Online (Sandbox Code Playgroud)

如何禁用这些广告,而不禁用更新和登录部分(想要制作高度安全的信息亭、智能显示屏或触摸屏?...部分)?

hey*_*ema 10

使用 SSH 登录计算机时,在到达命令提示符之前会显示大量文本。这来自motd(每日消息)流程。文本的数量可能有点压倒性。

要减少或大部分消除此文本,请编辑/etc/default/motd-news并更改ENABLED=1ENABLED=0.