summaryrefslogtreecommitdiff
path: root/roles/common/templates/sshd_config
blob: fb8efff6e732519f3319ec09c85a9cdd4484be6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Include /etc/ssh/sshd_config.d/*.conf

Port 22
PermitRootLogin yes
PubkeyAuthentication yes
PasswordAuthentication no

KbdInteractiveAuthentication no

UsePAM yes

AllowAgentForwarding yes
X11Forwarding no
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
ClientAliveInterval 300
ClientAliveCountMax 1

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystem	sftp	/usr/lib/openssh/sftp-server