diff --git a/sshd_config b/sshd_config new file mode 100644 index 0000000..5b4dbe7 --- /dev/null +++ b/sshd_config @@ -0,0 +1,34 @@ +Include /etc/ssh/sshd_config.d/*.conf + +Port 29 + +LoginGraceTime 2m +PermitRootLogin no +StrictModes yes +MaxAuthTries 3 +MaxSessions 4 + +AllowUsers sysadmin + +PubkeyAuthentication yes + +AuthorizedKeysFile .ssh/authorized_keys + +PasswordAuthentication no +PermitEmptyPasswords no + +ChallengeResponseAuthentication no + +UsePAM yes + +AllowAgentForwarding no +AllowTcpForwarding no +X11Forwarding no +PrintMotd no +PrintLastLog no +ClientAliveInterval 300 +ClientAliveCountMax 1 + +AcceptEnv LANG LC_* + +Subsystem sftp /usr/lib/openssh/sftp-server