build(etc): 添加 SSH 服务加固配置

This commit is contained in:
cnphpbb
2026-11-08 22:29:45 +08:00
parent 1b1a23dca4
commit ae15444764
+18
View File
@@ -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