aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/22_forge/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/jails/22_forge/templates')
-rw-r--r--roles/jails/22_forge/templates/etc_ssh_sshd_config.j29
1 files changed, 3 insertions, 6 deletions
diff --git a/roles/jails/22_forge/templates/etc_ssh_sshd_config.j2 b/roles/jails/22_forge/templates/etc_ssh_sshd_config.j2
index 11cf4a7..c99143c 100644
--- a/roles/jails/22_forge/templates/etc_ssh_sshd_config.j2
+++ b/roles/jails/22_forge/templates/etc_ssh_sshd_config.j2
@@ -8,14 +8,11 @@ HostKey /etc/ssh/ssh_host_ed25519_key
PermitRootLogin no
PubkeyAuthentication yes
-AuthorizedKeysFile /var/db/forge-config/%u/.ssh/authorized_keys
+AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
ChallengeResponseAuthentication no
+AllowUsers git
+
UseDNS no
PrintMotd no
-
-{% for user in forge_users %}
-Match User {{ user.name }}
- SetEnv GIT_CONFIG_GLOBAL=/var/db/forge-config/{{ user.name }}/.gitconfig
-{% endfor %}