mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ssh: Use drop-in config component for /etc files
Tests: - Config files are all symlinks in /etc/ - fail2ban-client show shows sshd in jail list - When ssh is enabled avahi-browse -a shows SSH and SFTP services. The avahi service files are created in /etc/avahi/services/. When service is disabled, files are removed and avahi-browse -a does not show the services. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
56b3c854e4
commit
e019f76b40
5 files changed
+16
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
||||
<service-group>
|
||||
|
||||
<name replace-wildcards="yes">%h SFTP server</name>
|
||||
|
||||
<service>
|
||||
<type>_sftp-ssh._tcp</type>
|
||||
<port>22</port>
|
||||
</service>
|
||||
|
||||
</service-group>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
||||
<service-group>
|
||||
|
||||
<name replace-wildcards="yes">%h</name>
|
||||
|
||||
<service>
|
||||
<type>_ssh._tcp</type>
|
||||
<port>22</port>
|
||||
</service>
|
||||
|
||||
</service-group>
|
||||
@@ -0,0 +1,2 @@
|
||||
[sshd]
|
||||
enabled = true
|
||||
Reference in new issue
Block a user