SSH key copy improvements
- Nov 07, 2024
-
-
Signed-off-by:
Robert Eckelmann <longnoserob@postmarketos.org>
-
Make it clear to the user which SSH keys get copied to the device, and also link to the wiki page that tells the user how to change ssh_key_glob.
-
When generating an ssh key it's simple to change the name of the key to something that's not e.g. id_rsa.pub or id_ed25519.pub, so let's try to capture ssh keys for more users.
-
Since a user can modify the glob to be somewhat arbitrary, use that to check if any ssh keys exist and ask in pmbootstrap init. Otherwise ssh_key_glob would only work if it was a subset of ~/.ssh/id_*.pub, so e.g. ~/.ssh/id_foo.pub but ~/.ssh/foo.pub wouldn't work.
-