aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/sshd/templates/sshd_config
diff options
context:
space:
mode:
Diffstat (limited to 'roles/sshd/templates/sshd_config')
-rw-r--r--roles/sshd/templates/sshd_config31
1 files changed, 0 insertions, 31 deletions
diff --git a/roles/sshd/templates/sshd_config b/roles/sshd/templates/sshd_config
deleted file mode 100644
index abcf0d7..0000000
--- a/roles/sshd/templates/sshd_config
+++ /dev/null
@@ -1,31 +0,0 @@
-{{ ansible_managed | comment }}
-
-# Parameters that have sane defaults on Debian 11 are omitted.
-
-{% set ssh_port = hostvars[inventory_hostname].ansible_port %}
-{% set ssh_user = hostvars[inventory_hostname].ansible_user %}
-
-{% set groups = [ssh_user] + ssh_allowed_groups %}
-{% set groups = groups | sort | unique %}
-
-Port {{ ssh_port }}
-
-# Whitelist users:
-PermitRootLogin no
-AllowGroups {{ groups | join(' ') }}
-
-# Only public key authentication:
-PasswordAuthentication no
-ChallengeResponseAuthentication no
-AuthenticationMethods publickey
-
-# Whitelist accepted environment variables:
-AcceptEnv LANG LC_*
-
-# Drop idle sessions:
-ClientAliveCountMax 3
-ClientAliveInterval 15
-
-# Miscellaneous:
-PrintMotd no
-Subsystem sftp /usr/lib/openssh/sftp-server