私はそれをカスタマイズし、次のようにログインする/etc/motd
と正しく表示されますssh
。
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 2.6.32-042stab141.3 x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
* Ubuntu 20.04 LTS is out, raising the bar on performance, security,
and optimisation for Intel, AMD, Nvidia, ARM64 and Z15 as well as
AWS, Azure and Google Cloud.
https://ubuntu.com/blog/ubuntu-20-04-lts-arrives
<< contents of /etc/motd >>>
Last login: Sun May 17 21:41:54 2020 from 37.30.54.65
その後、設定UsePAM
をに変更しましたが、no
結果は次のようになります。
Last login: Sun May 17 21:41:54 2020 from 37.30.54.65
ウェルカム画面を維持してUsePAM
見続けたいです。no
ベストアンサー1
/etc/motd
通常、PAMがシステムに表示されることを担当しているようです。
UsePAM no
に設定されている場合は、PAMを使用していない場合でも印刷するようにsshd_config
設定する必要があります。PrintMotd yes
sshd
/etc/motd
Ubuntuはこれを使用して、複数のソースから(そしておそらくスクリプトによって生成された他のコンテンツ...または私が正しく覚えている場合は同様のもの)から毎日pam_motd.so
メッセージを作成することに注意してください。/etc/motd
/etc/motd.d/*
update-motd
/var/motd.dynamic
sshd
MOTDルーチンがより簡単になる可能性があるため、メッセージ全体が/etc/motd
。