diff --git a/templates/sshd_config.j2 b/templates/sshd_config.j2 index 291a0f4..cb5e4d0 100644 --- a/templates/sshd_config.j2 +++ b/templates/sshd_config.j2 @@ -19,7 +19,11 @@ PrintMotd no DebianBanner no {% endif %} AcceptEnv LANG LC_* +{% if ansible_os_family == "Debian" %} Subsystem sftp /usr/lib/openssh/sftp-server +{% else %} +Subsystem sftp /usr/libexec/sftp-server +{% endif %} UsePAM yes KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512 Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr