diff options
| author | Jan Sydänviita <jan@sydanviita.fi> | 2026-08-22 21:41:32 +0300 |
|---|---|---|
| committer | Jan Sydänviita <jan@sydanviita.fi> | 2026-08-22 21:41:32 +0300 |
| commit | 901bd1ab6ba25491f138d3eba9bfa2ed3ac82488 (patch) | |
| tree | 25030576eb8c55913aea1dfd9bd9652f664e0a07 /roles/jails/22_forge/templates/etc_ssh_sshd_config.j2 | |
| parent | 3d5cdb0447834fb8460dce7b9a8f4ea1c931a0c0 (diff) | |
Revert to single forge user, improve
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, 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 %} |
