aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/22_forge/templates/etc_ssh_sshd_config.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/jails/22_forge/templates/etc_ssh_sshd_config.j2')
-rw-r--r--roles/jails/22_forge/templates/etc_ssh_sshd_config.j29
1 files changed, 6 insertions, 3 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 c99143c..11cf4a7 100644
--- a/roles/jails/22_forge/templates/etc_ssh_sshd_config.j2
+++ b/roles/jails/22_forge/templates/etc_ssh_sshd_config.j2
@@ -8,11 +8,14 @@ HostKey /etc/ssh/ssh_host_ed25519_key
PermitRootLogin no
PubkeyAuthentication yes
-AuthorizedKeysFile .ssh/authorized_keys
+AuthorizedKeysFile /var/db/forge-config/%u/.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 %}