aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/openssh/templates/sshd_config3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/openssh/templates/sshd_config b/modules/openssh/templates/sshd_config
index 1178a3e4..ed8c97ef 100644
--- a/modules/openssh/templates/sshd_config
+++ b/modules/openssh/templates/sshd_config
@@ -122,6 +122,7 @@ Subsystem sftp <%= path_to_sftp %>/sftp-server
# AllowTcpForwarding no
# ForceCommand cvs server
<% if @hostname == 'duvel' then %>
-Match User *,!schedbot,!root
+# git command is already forced to "gitolite <username>" in /var/lib/git/.ssh/authorized_keys
+Match User *,!schedbot,!root,!git
ForceCommand /usr/local/bin/sv_membersh.pl -c "$SSH_ORIGINAL_COMMAND"
<% end %>