recipes-core/dropbear: add custom dropbear config to enable ssh with rsa keys #102
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
For development, we have kept SSH RSA keys disabled, which means you can SSH to the Flex without using a password or private key. Since we are getting ready to ship the Flex we need to at least make it so you can't ssh as root without providing a valid private ssh key. This PR changes the config we provide to dropbear which disabled root logins with passwords, so the only way to be able to SSH into the Flex is with a valid private key for which the Flex has a matching public key.
Test Plan
/server/ssh_keys/from_local
endpoint add a valid SSH public key to the Flex and make sure you can SSH using the matching private keyChanges
DROPBEAR_EXTRA_ARGS="-s"
to enable SSH rsa logins ONLY