[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Raspberry Pi images SSH access



Hi

I've set up a couple of sdcards for raspberry pi 2 and 4. I've wrote image file to the sdcard with dd and can see the contents when i plug them to card reader.

Before plug sdcards i made some customizations.
- "etc/ssh/sshd_config"
(PermitRootLogin yes)
- 'mkpasswd' for generating a new password hash or copy/paste another hash which you want to use and
update "etc/shadow" file



On Wed, Apr 29, 2020, 15:44 fl4co <fl4co@fl4co.xyz> wrote:
Hi all,

I’d like to install one of the images provided on raspi.debian.net.

However, at https://raspi.debian.net/defaults-and-settings/ I read that the root account doesn’t have a password and limited to local access only by default.

Since I use this Pi headless and don’t have a monitor or a USB keyboard available for the first boot, I’d like to know if it’s possible to enable the SSH daemon by placing a file called ssh or ssh.txt on the /boot FAT32 partition of the SD card, just like in Raspbian (https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/debian/raspberrypi-sys-mods.sshswitch.service). 

Or, if sshd is already enabled, does adding a password to the root account in /boot/firmware/sysconf.txt, as explained at https://raspi.debian.net/defaults-and-settings/, enable SSH access?

Thank you.

fl4co

Reply to: