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

Port 22
PermitRootLogin no
PubkeyAuthentication yes
PasswordAuthentication no

KbdInteractiveAuthentication no

UsePAM yes

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

AcceptEnv LANG LC_*
Subsystem	sftp	/usr/lib/openssh/sftp-server