Files
deploy.stack/etc/sshd_config.d/99-hardening.conf
T

19 lines
483 B
Plaintext
Raw Normal View History

2026-11-08 22:29:45 +08:00
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