fix: sftp config
All checks were successful
ci/woodpecker/push/linting Pipeline was successful

This commit is contained in:
Simon Cornet 2026-06-08 15:45:47 +02:00
commit 223276a755

View file

@ -9,7 +9,7 @@ ListenAddress ::
HostKey /etc/ssh/ssh_host_ed25519_key
# Authentication
PermitRootLogin no
PermitRootLogin no
# Hardening
StrictModes yes
@ -40,4 +40,10 @@ Ciphers chacha20-poly1305@openssh.com,aes256-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com
# sFTP
{% if ansible_facts['os_family'] == 'Debian' %}
Subsystem sftp /usr/lib/openssh/sftp-server
{% elif ansible_facts['os_family'] == 'Alpine' %}
Subsystem sftp /usr/lib/ssh/sftp-server
{% else %}
Subsystem sftp /usr/libexec/sftp-server
{% endif %}