fix: do not create etc/ssh/sshd_config.d

Do not create etc/ssh/sshd_config.d, it should already exist and is
owned by openssh-clients and systemd.

Signed-off-by: Paul Whalen <pwhalen@fedoraproject.org>
This commit is contained in:
Paul Whalen 2026-02-24 15:52:24 -05:00
commit 7a121ed5e7

View file

@ -11,9 +11,6 @@ postprocess:
#!/usr/bin/env bash
set -xeuo pipefail
# Create sshd config directory if it doesn't exist
install -dm 0755 -o 0 -g 0 /etc/ssh/sshd_config.d
# Configure sshd to read keys from authorized_keys.d directory
cat > /etc/ssh/sshd_config.d/40-authorized-keys-file.conf << 'EOF'
# Also accept keys configured by Ignition and Afterburn