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