diff --git a/elements/bluefin-server/os-sshd-config.bst b/elements/bluefin-server/os-sshd-config.bst index f8b4684d..8101383d 100644 --- a/elements/bluefin-server/os-sshd-config.bst +++ b/elements/bluefin-server/os-sshd-config.bst @@ -1,7 +1,7 @@ kind: import description: | - Install a temporary sshd drop-in that allows root login for bring-up - and cluster boot tests. + Install a hardened sshd drop-in: key-based auth only, no direct root + password login. Bring-up diagnostics use key-based access. sources: - kind: local diff --git a/files/os/ssh/sshd_config.d/bluefin-server.conf b/files/os/ssh/sshd_config.d/bluefin-server.conf index e48942e9..198bc05c 100644 --- a/files/os/ssh/sshd_config.d/bluefin-server.conf +++ b/files/os/ssh/sshd_config.d/bluefin-server.conf @@ -1,7 +1,9 @@ -# Temporary SSH configuration for Bluefin Server bring-up. -# This file is intentionally ephemeral and will be removed once boot-time -# diagnostics no longer require remote shell access. +# SSH configuration for Bluefin Server. +# Hardened defaults: no direct root password login, no password auth at all. +# Bring-up diagnostics must use key-based auth (inject an authorized_keys +# entry via systemd credentials or the installer). -PermitRootLogin yes +PermitRootLogin prohibit-password PubkeyAuthentication yes -PasswordAuthentication yes +PasswordAuthentication no +KbdInteractiveAuthentication no