include the fail2ban jail.local file complete, move files in folders

This commit is contained in:
Florian Hoss 2021-12-08 06:57:30 +01:00
parent e8840d57dc
commit 22a2ef2de6
4 changed files with 975 additions and 66 deletions

34
etc/ssh/sshd_config Normal file
View file

@ -0,0 +1,34 @@
Include /etc/ssh/sshd_config.d/*.conf
Port 29
LoginGraceTime 2m
PermitRootLogin no
StrictModes yes
MaxAuthTries 3
MaxSessions 4
AllowUsers sysadmin
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
UsePAM yes
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
PrintMotd no
PrintLastLog no
ClientAliveInterval 300
ClientAliveCountMax 1
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server