diff options
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 |