Initial own-git docs, configs, scripts, and hardening pack
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# OwnGit SSH hardening baseline.
|
||||
# Этот файл рассчитан на OpenSSH в Ubuntu 24.04 (sshd_config.d include).
|
||||
|
||||
# Запрет логина root по SSH.
|
||||
PermitRootLogin no
|
||||
|
||||
# Только ключевая аутентификация.
|
||||
PasswordAuthentication no
|
||||
KbdInteractiveAuthentication no
|
||||
PubkeyAuthentication yes
|
||||
|
||||
# Ограничение попыток.
|
||||
MaxAuthTries 4
|
||||
LoginGraceTime 30
|
||||
|
||||
# Не принимать пустые пароли.
|
||||
PermitEmptyPasswords no
|
||||
|
||||
# Ограничить пробросы по умолчанию.
|
||||
AllowTcpForwarding no
|
||||
X11Forwarding no
|
||||
AllowAgentForwarding no
|
||||
|
||||
# Keepalive для очистки "висящих" соединений.
|
||||
ClientAliveInterval 300
|
||||
ClientAliveCountMax 2
|
||||
Reference in New Issue
Block a user