From baea235e10552788bf0a936e9fdb3800dd686d75 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sat, 25 Oct 2025 13:27:22 +0200 Subject: [PATCH] fix: remove directives for Alpine --- templates/sshd/sshd_config.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/sshd/sshd_config.j2 b/templates/sshd/sshd_config.j2 index 87b063b..3a42c6e 100644 --- a/templates/sshd/sshd_config.j2 +++ b/templates/sshd/sshd_config.j2 @@ -42,9 +42,11 @@ ClientAliveCountMax 8 Compression no AllowTcpForwarding yes AllowAgentForwarding yes +PrintMotd yes +{% if ansible_distribution == 'Debian' %} UsePAM yes -PrintMotd no PrintLastLog no +{% endif %} # The cryptos KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org