3

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?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
Lunartist
  • 375
  • 2
  • 13

1 Answers1

5

This is documented in the agetty manual page.

It would seem that sshd doesn't process those special strings.

berndbausch
  • 3,477
  • 2
  • 15
  • 21