DietPi-Docs icon indicating copy to clipboard operation
DietPi-Docs copied to clipboard

Add docs about pre-configuring SSH with pubkey via dietpi.txt

Open MichaIng opened this issue 3 years ago • 4 comments

as added with DietPi v8.5: https://github.com/MichaIng/DietPi/pull/5509

MichaIng avatar Jun 03 '22 19:06 MichaIng

Text contents of the release notes: Security | It is now possible to add public SSH keys to dietpi.txt, to be applied at first boot for public key authentication with "dietpi" and "root" users. Additionally, SSH password authentication can be disabled for all users or "root" only. Have a look at "AUTO_SETUP_SSH_PUBKEY" and "SOFTWARE_DISABLE_SSH_PASSWORD_LOGINS" settings in /boot/dietpi.txt.

StephanStS avatar Jul 03 '22 12:07 StephanStS

And the respective parts in dietpi.txt:

  • https://github.com/MichaIng/DietPi/blob/584b862/dietpi.txt#L81-L85
  • https://github.com/MichaIng/DietPi/blob/584b862/dietpi.txt#L220-L225

MichaIng avatar Jul 03 '22 13:07 MichaIng

Describe also this release notes entry of v8.5 DietPi-Software | Dropbear/OpenSSH Password authentication is now disabled if set via SOFTWARE_DISABLE_SSH_PASSWORD_LOGINS setting in /boot/dietpi.txt.

StephanStS avatar Aug 06 '22 12:08 StephanStS

Docs to be extended there:

  • https://dietpi.com/docs/software/ssh/#dropbear
  • https://dietpi.com/docs/software/ssh/#openssh
  • https://dietpi.com/docs/usage/#how-to-do-an-automatic-base-installation-at-first-boot-dietpi-automation

StephanStS avatar Aug 06 '22 12:08 StephanStS