sdm icon indicating copy to clipboard operation
sdm copied to clipboard

Additional configuration of (user-specific) ssh

Open rvaneerd opened this issue 6 months ago • 3 comments

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.

rvaneerd avatar Aug 17 '24 11:08 rvaneerd