What's the proper way to get a login banner to display whenever someone SSH's into my COPSSH service?
Release news
-
2023-03-21
-
2023-03-20
-
2023-03-20
-
2023-03-10
-
2023-03-09
-
2023-03-04
-
2023-03-02
-
2023-02-28
-
2023-03-07
Have a look at the Banner directive for the configuration file etc/sshd_config:
Banner The contents of the specified file are sent to the remote user
before authentication is allowed. If the argument is ``none''
then no banner is displayed. This option is only available for
protocol version 2. By default, no banner is displayed.
I would also like to have a banner get displayed when logging into the CopSSH service.
In etc/sshd_config, I have the following value:
Banner \etc\Banner.txt
I have confirmed that there is a file Banner.txt in the \etc directory. I've confirmed the protocol version 2. I've restarted the service and still have no banner. I'm running v5.1.0. Should the value be:
Banner=\etc\Banner.txt
Try to add the following directive to the [server] section of bin/copsshcp.config:
Banner=/etc/banner.txt
and restart the server via Copssh control Panel. This operation will update sshd_config file with the banner information.
That is what I understood - the directive had to be in the [server] section of bin/copsshcp.config. I tried that before and couldn't get it working.
However, I added the directive to bin/copsshcp.config, restarted the service, confirmed it had been added to sshd_config and now the banner loads!
Thank you!