ritamcm at earthlink.net
2007-Aug-24 03:44 UTC
Unable to use the Banner keyword in a Match Block in OpenSSH 4.4p1
I am running Openssh 4.4p1 on a Solaris 9 server. I would like the accting service account to be able to run accounting scripts from a central server without the standard pre-login banner. At the end of the sshd_config file I have the following, where /etc/nobanner is an empty file: Banner /etc/issue Match User accting Banner /etc/nobanner When an attempt is made to restart sshd, the error is: /usr/local/etc/sshd_config line 127: Directive 'Banner' is not allowed within a Match block However, when I look at the manual page for sshd_config at openssh.org, Banner is listed as an keyword under Match. What is the correct way to use the Banner keyword in a Match block in openssh 4.4p1? Thanks for your help, Rita
Peter Stuge
2007-Aug-24 15:35 UTC
Unable to use the Banner keyword in a Match Block in OpenSSH 4.4p1
Hi Rita, On Thu, Aug 23, 2007 at 11:44:53PM -0400, ritamcm at earthlink.net wrote:> However, when I look at the manual page for sshd_config at > openssh.org, Banner is listed as an keyword under Match. What is > the correct way to use the Banner keyword in a Match block in > openssh 4.4p1?I'm not sure that is possible. The man page probably refers to the very latest release of OpenSSH. 4.4p1 is a bit old. Match support has been added for several directives lately and Banner may be one of them. Please try the latest version. //Peter
Seemingly Similar Threads
- Samba 3.0.7, print banner pages
- [Bug 1221] Banner only suppressed at log level = QUIET (used to be at log level < INFO)
- Printing banners
- when to display a banner
- Option to limiting sshd "banner" to interactive/password-auth/tty (or something along those lines) sessions