Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
[Solved] SSHD banner
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] SSHD banner (Read 2814 times)
cmdr.adama
Jr. Member
Posts: 61
Karma: 3
[Solved] SSHD banner
«
on:
September 05, 2020, 07:06:26 am »
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?
«
Last Edit: September 05, 2020, 08:28:03 am by cmdr.adama
»
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: SSHD banner
«
Reply #1 on:
September 05, 2020, 08:01:04 am »
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
Logged
cmdr.adama
Jr. Member
Posts: 61
Karma: 3
[Solved] Re: SSHD banner
«
Reply #2 on:
September 05, 2020, 08:27:44 am »
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.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
[Solved] SSHD banner