From 0572c54f6a42f3065195381ef3e5dab563429958 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 12 Jun 2025 15:18:38 +0200 Subject: [PATCH] sshd: allow root logins via ssh The root user is often the only user present on the system, let's trust OpenSSH to authenticate it properly, and open this up by default. This mimics a similar patch in systemd. --- mkosi.extra/etc/ssh/sshd_config.d/50-rootok.conf | 1 + 1 file changed, 1 insertion(+) create mode 100644 mkosi.extra/etc/ssh/sshd_config.d/50-rootok.conf diff --git a/mkosi.extra/etc/ssh/sshd_config.d/50-rootok.conf b/mkosi.extra/etc/ssh/sshd_config.d/50-rootok.conf new file mode 100644 index 00000000..1073982f --- /dev/null +++ b/mkosi.extra/etc/ssh/sshd_config.d/50-rootok.conf @@ -0,0 +1 @@ +PermitRootLogin yes