summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-07-15 15:24:42 +0800
committerXiao Pan <xyz@flylightning.xyz>2025-07-15 15:24:42 +0800
commit82159d8120d049440697fcbe7f0929f80eeea30d (patch)
tree9857b0559265a027848312a7bb23faa845c68058 /etc
parentdce9aad15ce4148a5f9be957cf2501dc0501b1ef (diff)
sshd config restrict only from wg ip to insp gitolite user
Diffstat (limited to 'etc')
-rw-r--r--etc/ssh/sshd_config1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/ssh/sshd_config b/etc/ssh/sshd_config
index 6a9a4670..d5d12057 100644
--- a/etc/ssh/sshd_config
+++ b/etc/ssh/sshd_config
@@ -9,6 +9,7 @@ KbdInteractiveAuthentication no
UsePAM yes
# when ssh into this remote server, client if use alacritty need `SendEnv COLORTERM` to send the env to server, so server ls can default output color, more see comments in my alacritty.toml config
AcceptEnv COLORTERM
+AllowUsers gitolite@10.0.0.0/24
# Include drop-in configurations
Include /etc/ssh/sshd_config.d/*.conf