sdm
sdm copied to clipboard
Additional configuration of (user-specific) ssh
Hi there,
After building an image and loading it into a RPi, I know, the host related ssh key configuration is (re-)generated.
However, for the user(s) added to the RPi image, once up and running, the ssh configuration still needs some manual tasks:
- Generate a user specific ssh key:
ssh-keygen -t rsa
- Copy the/a workstation public key (
MacBookPro_id_rsa.pub
) to the RPi's user specific.ssh
folder - Add that public key to the
authorized_keys
file:cat MacBookPro_id_rsa.pub >>authorized_keys
- Change ownership of the
authorized_keys
file:chmod 600 authorized_keys
Is that somehow already possible?
Regards, Rob.