diff --git a/etc/sshd_config.d/99-hardening.conf b/etc/sshd_config.d/99-hardening.conf new file mode 100644 index 0000000..022b80c --- /dev/null +++ b/etc/sshd_config.d/99-hardening.conf @@ -0,0 +1,18 @@ +PasswordAuthentication no +KbdInteractiveAuthentication no +PubkeyAuthentication yes +AuthenticationMethods publickey +PermitRootLogin prohibit-password +AllowUsers yong +MaxAuthTries 3 +LoginGraceTime 30 +ClientAliveInterval 300 +ClientAliveCountMax 2 +X11Forwarding no +AllowAgentForwarding no +AllowStreamLocalForwarding no +MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com +RequiredRSASize 2048 +LogLevel VERBOSE +MaxStartups 10:30:60 +RekeyLimit 1G 3600