diff options
| author | Jan Sydänviita <jan@sydanviita.fi> | 2026-08-20 18:39:12 +0300 |
|---|---|---|
| committer | Jan Sydänviita <jan@sydanviita.fi> | 2026-08-20 18:51:22 +0300 |
| commit | 76f5c19d272b7f73198751a65d8ca6a5a4864bb1 (patch) | |
| tree | fb8071125b587d60a7577c0660fc63a233a8fd2d /roles/jails/22_forge/templates/etc_ssh_sshd_config.j2 | |
| parent | 55a67ef35de8b425b83372667de223c46f3307ea (diff) | |
Add multi user support to forge
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.j2 | 9 |
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 %} |
