How to control the login messages of /etc/issue on one ssh session
Issue
- When using ssh to log in to a sshd server, the following messages are output:
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.