core/ssh
Enable SSH and persist host keys.
Enable SSH and persist host keys.
Inputs
No artifact inputs.
Parameters
-
root_authorized_keys -
Default:
""Public authorized_keys entries appended to root’s authorized_keys file. Empty adds no keys.
Scheduling
-
Priority
-
80000 -
Dependencies
-
pkg-update
Higher priorities run first within the selected recipe set unless before or
after constraints require otherwise. Dependencies include other recipes
without ordering them.
Behavior
Installs OpenSSH and a systemd or OpenRC service that preserves SSH host keys across boots. The optional authorized keys are appended to /root/.ssh/authorized_keys; the system’s SSH configuration still determines whether root login is allowed.
Example
For example, add the recipe to a layer derived from a compatible base:
recipes = ["core/ssh"]