1 つの SSH セッションで /etc/issue のログインメッセージを制御する方法
Issue
- ssh を使用して sshd サーバーにログインすると、以下のメッセージが出力されます。
For RHEL6 server:
# ssh root@rhel
Red Hat Enterprise Linux Server release 6.10 (Santiago)
Kernel \r on an \m
root@rhel's password:
For RHEL7 / RHEL8 / RHEL9 server:
# ssh root@rhel
\S
Kernel \r on an \m
root@rhel's password:
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- openssh
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.