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