02-10-2024, 10:17 PM
(02-10-2024, 10:15 PM)TheOldPresbyope Wrote: Adding the note will do no harm but the important thing here is that Imager has to be set to enable SSH in the flashed image.
Either password authentication or public key authentication work fine. HOWEVER I'm bewildered why someone would choose the latter if they don't understand what it means and how it works. Balena Etcher has no facility for setting any of this so it's not like there's learned behavior to unlearn.
In my case, just flashed a fresh Bookworm Lite with "public key authentication only" selected. This in Imager 1.8.5 on my Linux Mint laptop. Once "Run SSH-KEYGEN" completed for the first time it wrote the appropriate keys for user "pi" (I kept the traditional username) into the Bookworm image AND ALSO into the .ssh keystore in my account on the laptop. Booted the image on a RPi4B. Now I can ssh to it as user pi from my account on my laptop without entering a password. Just as advertised. Repeated the exercise using moOde 8.3.7 instead of vanilla Bookworm Lite. Again, success.
Of course, once this is enabled the idea of setting a new password in moOde is useless.
Just my two cents worth.
Regards,
Kent
Good points.