[Solved] SSHD banner

Started by cmdr.adama, September 05, 2020, 07:06:26 AM

Previous topic - Next topic
September 05, 2020, 07:06:26 AM Last Edit: September 05, 2020, 08:28:03 AM by cmdr.adama
Hey guys,

This should be a fairly simple one where I'm just missing something or maybe something to add as a feature request for a future release if it's not already doable...

What I am wanting to do is add my own content to a SSHD banner.
Because sshd_config is currently automatically generated, is there a way to add or append my legal content to the SSH banner in OpnSense?

Hi,

The file to edit is /usr/local/opnsense/service/templates/OPNsense/Auth/motd although that one is rewritten on firmware updates and modifications show up in the health audit.

To avoid this use target overlays as describe here:

https://docs.opnsense.org/development/backend/templates.html#target-overwrites


Cheers,
Franco

Legend.. Exactly what I was after...

Not that confident to screw with the target overlays yet but added what I needed to /usr/local/opnsense/service/templates/OPNsense/Auth/motd and it's looking good.