setup-sshd: Ask for authorized key for root
Description:
As proposed by @ncopa in #10459 (closed), this feature allows to provide a download URL for an SSH public key during the sshd
setup.
Additionally it is possible to provide the key directly, e.g. when an answer file for setup-alpine
is used or when the admin accesses the machine via a web or SSH console (like Linode's lish
) that allows pasting in the full key.
I have verified that Alpine's default configuration indeed supports root access via opensshd
when an SSH key is used.
References:
Fixes #10459 (closed).