forked from DevOps/deploy.stack
build(etc): 添加 SSH 服务加固配置
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user