aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/ssh/sshd_config.d
diff options
context:
space:
mode:
Diffstat (limited to 'files/usr/local/etc/ssh/sshd_config.d')
-rw-r--r--files/usr/local/etc/ssh/sshd_config.d/gitolite.conf.git_server12
1 files changed, 12 insertions, 0 deletions
diff --git a/files/usr/local/etc/ssh/sshd_config.d/gitolite.conf.git_server b/files/usr/local/etc/ssh/sshd_config.d/gitolite.conf.git_server
new file mode 100644
index 0000000..33b9282
--- /dev/null
+++ b/files/usr/local/etc/ssh/sshd_config.d/gitolite.conf.git_server
@@ -0,0 +1,12 @@
+Match User ${gitolite_local_user}
+ GSSAPIAuthentication no
+ KbdInteractiveAuthentication no
+ PasswordAuthentication no
+ PubkeyAuthentication yes
+ AuthenticationMethods publickey
+ AuthorizedKeysFile none
+ AuthorizedKeysCommand /usr/local/libexec/gitolite-authorizedkeys ${gitolite_admin_role} ${gitolite_access_role}
+ AuthorizedKeysCommandUser ${gitolite_local_user}
+ DisableForwarding yes
+ PermitUserRC no
+ PermitTTY no