Forum Discussion
tmsh sshd banner-text multi line
- Hitesh_Patel_34Historic F5 AccountHi Nick,
- Nick_T_68319NimbostratusPerfect, thank you!
- smp_86112CirrostratusI use this command:
tmsh modify sys sshd banner-text '"This is a wrapped banner"'
- Forrest_30133NimbostratusSMP,
- smp_86112CirrostratusNot sure I understand what you mean. If you don't want the wraps, you put it all on a single line like this:
tmsh modify sys sshd banner-text '"This is a SSH banner"'
- Forrest_30133NimbostratusSorry I was not clear. I was more specifically looking for what a CRLF looked like in TMSH.
- smp_86112CirrostratusI execute this command from the unix shell, not inside TMSH. Since I'm using single quotes, unix simply accepts the enter key as a CRLF character until I close the command with a final trailing single quote. I don't believe I've ever tried this command from within TMSH. If I get a minute here soon, I'll try it out.
- smp_86112CirrostratusI did not have much luck within TMSH, but I also find TMSH very difficult to work in. Maybe someone with better skillz will step in and help.
- Joe_Carrigan_10Nimbostratus
If you are entering the commands from the command line, as opposed to editing the section of the configuration you may need to use two commands. One to change the text:tmsh modify sys sshd banner-text '"multiline text line 1line 2 "'and one to enable the banner:tmsh modify sys sshd banner enable.It may also be helpful to point out that the format for the multiline input opened with a single quote, then a double quote, and closed with a double quote then a single quote.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com