summaryrefslogtreecommitdiffstats
path: root/roles/pve-lxc-ssh/templates/sshd_config.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/pve-lxc-ssh/templates/sshd_config.j2')
-rw-r--r--roles/pve-lxc-ssh/templates/sshd_config.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/pve-lxc-ssh/templates/sshd_config.j2 b/roles/pve-lxc-ssh/templates/sshd_config.j2
new file mode 100644
index 00000000..d8ccc6d2
--- /dev/null
+++ b/roles/pve-lxc-ssh/templates/sshd_config.j2
@@ -0,0 +1,13 @@
+Port {{ pve_lxc_ssh_port }}
+PermitRootLogin prohibit-password
+PasswordAuthentication no
+AuthenticationMethods publickey
+PermitEmptyPasswords no
+KbdInteractiveAuthentication no
+ChallengeResponseAuthentication no
+UsePAM no
+X11Forwarding no
+PrintMotd yes
+AuthorizedKeysFile .ssh/authorized_keys
+HostKey /etc/ssh/ssh_host_ed25519_key
+Subsystem sftp /usr/lib/ssh/sftp-server