aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/ssh/sshd_config.d/gitolite.conf.git_server
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-11-12 23:50:18 -0500
committerCullum Smith <cullum@sacredheartsc.com>2024-11-12 23:50:18 -0500
commit5aa2283f9951b3e035824b54bd0277ebf4394ffa (patch)
treedf93cef70ce1d49576b9a98f165e8dfc6aaa52f7 /files/usr/local/etc/ssh/sshd_config.d/gitolite.conf.git_server
parent6512242bc03acf2bdaa4fea6fcc7fe51c2330f03 (diff)
downloadinfrastructure-5aa2283f9951b3e035824b54bd0277ebf4394ffa.tar.gz
add gitolite/cgit
Diffstat (limited to 'files/usr/local/etc/ssh/sshd_config.d/gitolite.conf.git_server')
-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