Files
vps-server-01/VPS/configs/sshd-00-hardening.conf
T
administrator e7667fe801 First
2026-06-21 20:30:44 +03:00

7 lines
281 B
Plaintext

# /etc/ssh/sshd_config.d/00-hardening.conf
# Префикс 00- намеренно: sshd берёт первое значение, перебивает cloud-init.
PasswordAuthentication no
KbdInteractiveAuthentication no
PermitRootLogin prohibit-password
PubkeyAuthentication yes