summaryrefslogtreecommitdiffstats
path: root/gitolite/sshd_config
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-09-13 04:18:16 -0400
committerMalfurious <m@lfurio.us>2023-09-15 10:53:24 -0400
commitc3e4b42c98dd433bbc2f90beeae102a4993c17e5 (patch)
tree1c75e73de075f3a1e791f053a2e5ddc877da07eb /gitolite/sshd_config
parent5cd2822ed607d1f20d1d114aebe511a4fe5f1825 (diff)
downloadsrcnode-c3e4b42c98dd433bbc2f90beeae102a4993c17e5.tar.gz
srcnode-c3e4b42c98dd433bbc2f90beeae102a4993c17e5.zip
gitolite: Consolidate config files into a single directory
The repository is being reworked to decouple its roles as normalmode source and gitolite-admin config. The gitolite-admin repository will be entirely separate. So there is no need to keep the conf or local directories around where they are at. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'gitolite/sshd_config')
-rw-r--r--gitolite/sshd_config22
1 files changed, 22 insertions, 0 deletions
diff --git a/gitolite/sshd_config b/gitolite/sshd_config
new file mode 100644
index 0000000..efc0c52
--- /dev/null
+++ b/gitolite/sshd_config
@@ -0,0 +1,22 @@
+Port 22
+
+HostKey /hostkeys/etc/ssh/ssh_host_rsa_key
+HostKey /hostkeys/etc/ssh/ssh_host_ecdsa_key
+HostKey /hostkeys/etc/ssh/ssh_host_ed25519_key
+
+# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
+# but this is overridden so installations will only check .ssh/authorized_keys
+AuthorizedKeysFile .ssh/authorized_keys
+
+UsePAM yes
+PermitRootLogin no
+PasswordAuthentication no
+KbdInteractiveAuthentication no
+AllowAgentForwarding no
+AllowTcpForwarding no
+GatewayPorts no
+X11Forwarding no
+PermitTTY no
+PrintLastLog no
+PermitUserEnvironment no
+PermitTunnel no