This commit is contained in:
parent
0110e6ba79
commit
223276a755
1 changed files with 7 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ ListenAddress ::
|
||||||
HostKey /etc/ssh/ssh_host_ed25519_key
|
HostKey /etc/ssh/ssh_host_ed25519_key
|
||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
PermitRootLogin no
|
PermitRootLogin no
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
StrictModes yes
|
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
|
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com
|
||||||
|
|
||||||
# sFTP
|
# 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
|
Subsystem sftp /usr/libexec/sftp-server
|
||||||
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue