COPSSH Banner syntax?

5 posts / 0 new
Last post
drivel2787
Offline
Last seen: 9 years 2 months ago
Joined: 09.01.2014 - 12:27
COPSSH Banner syntax?

What's the proper way to get a login banner to display whenever someone SSH's into my COPSSH service? 

itefix
Offline
Last seen: 1 hour 32 min ago
Joined: 01.05.2008 - 21:33
Have a look at the Banner

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.

wagaar
Offline
Last seen: 7 years 4 months ago
Joined: 12.10.2015 - 21:20
Banner in etc/sshd_config

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

 

 

itefix
Offline
Last seen: 1 hour 32 min ago
Joined: 01.05.2008 - 21:33
Try to add the following

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.

wagaar
Offline
Last seen: 7 years 4 months ago
Joined: 12.10.2015 - 21:20
That is what I understood -

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!

Release news