summaryrefslogtreecommitdiff
path: root/roles/apps/whawty/auth/instance/templates/sync-sshd_config.j2
blob: 65a11d80f6e7d7914ad53bd4c1cfe9d5ba0063b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Port {{ whawty_auth_instances[whawty_auth_instance].sync.port }}
ListenAddress 0.0.0.0
ListenAddress ::

HostKey /config/ssh_host_ed25519_key
PidFile none

PermitRootLogin no
PubkeyAuthentication yes

HostbasedAuthentication no
PasswordAuthentication no
PermitEmptyPasswords no
KbdInteractiveAuthentication no

AllowAgentForwarding no
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
PermitTTY no
UseDNS no
PermitTunnel no
AllowStreamLocalForwarding no
AllowTcpForwarding no

ForceCommand /usr/bin/rsync --server --daemon --config /config/rsyncd.conf .

AllowUsers sync
AuthorizedKeysFile /config/authorized_keys