diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-01-01 00:36:31 -0500 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-01-01 00:36:31 -0500 |
commit | 3b818dc0b9c415124a6c16a85e757e45ebed7249 (patch) | |
tree | c0eb1b58c9fc8362b72136f17861e81c08bbf773 /roles/common/templates/sshd_config | |
download | oldinfra-3b818dc0b9c415124a6c16a85e757e45ebed7249.tar.gz oldinfra-3b818dc0b9c415124a6c16a85e757e45ebed7249.zip |
initial common setup
Diffstat (limited to 'roles/common/templates/sshd_config')
-rw-r--r-- | roles/common/templates/sshd_config | 24 |
1 files changed, 24 insertions, 0 deletions
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 |