aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/22_forge/templates/etc_ssh_sshd_config.j2
blob: 11cf4a7406fc8e1aecfd14c3ffdd06bcd2b8ced5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Port 22
AddressFamily any
ListenAddress 0.0.0.0

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key

PermitRootLogin no
PubkeyAuthentication yes
AuthorizedKeysFile /var/db/forge-config/%u/.ssh/authorized_keys
PasswordAuthentication no
ChallengeResponseAuthentication no

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 %}