FossilRepo

fossilrepo / docker / sshd_config
Blame History Raw 37 lines
1
# fossilrepo sshd — restricted config for Fossil SSH access.
2
#
3
# Only the "fossil" system user can log in, and all connections are forced
4
# through fossil-shell via authorized_keys command= directives.
5
6
Port 22
7
ListenAddress 0.0.0.0
8
9
# Host keys (generated on first boot)
10
HostKey /etc/ssh/ssh_host_ed25519_key
11
HostKey /etc/ssh/ssh_host_rsa_key
12
13
# Auth
14
PermitRootLogin no
15
PasswordAuthentication no
16
PubkeyAuthentication yes
17
AuthorizedKeysFile /data/ssh/authorized_keys
18
19
# Only allow the fossil user
20
AllowUsers fossil
21
22
# Force all fossil-user connections through the restricted shell,
23
# even if an authorized_keys entry is missing the command= directive.
24
ForceCommand /usr/local/bin/fossil-shell
25
26
# Disable everything except the sync protocol
27
PermitTunnel no
28
AllowTcpForwarding no
29
X11Forwarding no
30
AllowAgentForwarding no
31
GatewayPorts no
32
PrintMotd no
33
34
# Logging
35
SyslogFacility AUTH
36
LogLevel INFO
37

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button