summaryrefslogtreecommitdiff
path: root/src/ssh.conf
blob: 294026065beb0023bc66321dabe3a89f90a9a803 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Security, do not allow any access to the git repos outside of allowed users
PermitRootLogin no
PasswordAuthentication no
PermitTTY no
AllowAgentForwarding no

# Point keys to shared data dir
HostKey /var/ssh/etc/ssh/ssh_host_rsa_key
HostKey /var/ssh/etc/ssh/ssh_host_ecdsa_key
HostKey /var/ssh/etc/ssh/ssh_host_ed25519_key

# Logging
SyslogFacility AUTH
LogLevel INFO

# Force run script that checks for permissions and runs sudo
ForceCommand /usr/local/bin/run "$SSH_ORIGINAL_COMMAND"