summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2026-11-15 16:25:42 +0100
committerJesper Jensen <jesper@jnsn.dev>2026-11-15 16:25:54 +0100
commit2393bf58625e9b12332b5859196c2b02da675ab6 (patch)
treedd0889fabba15cb07e3191bc0794df28e618c105
parentbb35e1e366fa1d0680866be26a28eadecba74c3b (diff)
downloadgit-host-2393bf58625e9b12332b5859196c2b02da675ab6.tar.gz
git-host-2393bf58625e9b12332b5859196c2b02da675ab6.zip
Don't force a command, since we use the shellHEADmain
-rw-r--r--sshd_config13
1 files changed, 0 insertions, 13 deletions
diff --git a/sshd_config b/sshd_config
index fca7e7b..1903eeb 100644
--- a/sshd_config
+++ b/sshd_config
@@ -4,22 +4,9 @@ HostKey /run/git-host/secrets/ssh_host_ed25519_key
HostKey /run/git-host/secrets/ssh_host_rsa_key
PidFile /run/sshd/sshd.pid
-# One OS account for everyone; the name behind a key comes from the key itself:
-#
-# environment="GIT_HOST_USER=alice",command="/usr/bin/git-shell",... ssh-ed25519 ...
-
AuthorizedKeysFile /run/git-host/secrets/authorized_keys
-
-# Without this sshd silently drops the environment= option and every push arrives
-# anonymous. The usual objection does not apply: there is no login shell here
-# (ForceCommand below), no writable files and no user rc file.
-
PermitUserEnvironment yes
-# For a hand-added key that forgot its command= option: git transport, no shell.
-
-ForceCommand /usr/bin/git-shell
-
PasswordAuthentication no
KbdInteractiveAuthentication no
ChallengeResponseAuthentication no