summaryrefslogtreecommitdiff
path: root/components/services
diff options
context:
space:
mode:
authorLeonardo <noreply@leoflo.me>2026-03-23 18:00:48 +0100
committerLeonardo <noreply@leoflo.me>2026-03-23 18:07:53 +0100
commit44024e8e52b490e9f61f5c87a50da0dac9cf1a4f (patch)
treee64255737de59108242f5f50f2677a58759f7882 /components/services
parent626351fa5a7a0cd366021edaa84e1cd794af1017 (diff)
downloadnixos-44024e8e52b490e9f61f5c87a50da0dac9cf1a4f.tar.gz
nixos-44024e8e52b490e9f61f5c87a50da0dac9cf1a4f.zip
git user
Diffstat (limited to 'components/services')
-rw-r--r--components/services/openssh.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/services/openssh.nix b/components/services/openssh.nix
index 66a6499..eb52bf1 100644
--- a/components/services/openssh.nix
+++ b/components/services/openssh.nix
@@ -10,6 +10,15 @@
PasswordAuthentication = false;
PrintMotd = false;
};
+
+ extraConfig = ''
+ Match user git
+ AllowTcpForwarding no
+ AllowAgentForwarding no
+ PasswordAuthentication no
+ PermitTTY no
+ X11Forwarding no
+ '';
};
};
}