From a8c75a12f5089acb3cbb6ff9557fe3ea6460f81c Mon Sep 17 00:00:00 2001 From: "Daniel A. Maierhofer" Date: Thu, 8 Nov 2018 08:39:57 +0100 Subject: [PATCH] Fix sftp for Void Linux --- templates/sshd_config.j2 | 4 ++++ 1 file changed, 4 insertions(+) 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