If I cat /etc/issue.net
, it has this inside:
\S
Kernel \r on an \m
When I use this as the ssh banner, it does not expand and just prints it as it's written.
What is this?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityThis is documented in the agetty manual page.
It would seem that sshd doesn't process those special strings.