From 3b818dc0b9c415124a6c16a85e757e45ebed7249 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 1 Jan 2024 00:36:31 -0500 Subject: initial common setup --- roles/common/templates/sshd_config | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 roles/common/templates/sshd_config (limited to 'roles/common/templates/sshd_config') diff --git a/roles/common/templates/sshd_config b/roles/common/templates/sshd_config new file mode 100644 index 0000000..fb8efff --- /dev/null +++ b/roles/common/templates/sshd_config @@ -0,0 +1,24 @@ +Include /etc/ssh/sshd_config.d/*.conf + +Port 22 +PermitRootLogin yes +PubkeyAuthentication yes +PasswordAuthentication no + +KbdInteractiveAuthentication no + +UsePAM yes + +AllowAgentForwarding yes +X11Forwarding no +PrintMotd no +PrintLastLog yes +TCPKeepAlive yes +ClientAliveInterval 300 +ClientAliveCountMax 1 + +# Allow client to pass locale environment variables +AcceptEnv LANG LC_* + +# override default of no subsystems +Subsystem sftp /usr/lib/openssh/sftp-server -- cgit v1.2.3-70-g09d2