summaryrefslogtreecommitdiff
path: root/ssh
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2026-12-02 09:46:36 -0600
committerBrad Clawsie <brad@b7j0c.org>2026-12-02 09:46:36 -0600
commit1c13732b2cc5bacd8d3aaf48c237f0812a11b7c2 (patch)
tree8042e759155896a1eeaed34b94c1b41585725db6 /ssh
parentd9692a037a002e7ca4770e3a809df354b10b14e4 (diff)
hardeningHEADmaster
Diffstat (limited to 'ssh')
-rw-r--r--ssh/sshd_config14
1 files changed, 14 insertions, 0 deletions
diff --git a/ssh/sshd_config b/ssh/sshd_config
index 80f3127..0ecbf75 100644
--- a/ssh/sshd_config
+++ b/ssh/sshd_config
@@ -10,3 +10,17 @@ PermitRootLogin no
PermitEmptyPasswords no
PubkeyAuthentication yes
AllowUsers brad git
+AuthenticationMethods publickey
+MaxAuthTries 3
+LoginGraceTime 30
+PermitUserEnvironment no
+AllowAgentForwarding no
+PermitTunnel no
+AllowTcpForwarding no
+DisableForwarding yes
+PermitUserRC no
+RequiredRSASize 2048
+
+Match User git
+ DisableForwarding yes
+ PermitTTY no