On 26/02/2025 04:49, Dave Vandermeer wrote:
> It boots OK and the ssh deamon is running but the default username
> 'pi' and password 'raspberry' don't work. How on earth do I get into
> it to start it up?
Did you use the RPI Imager to create your SD card? You need to create a password for the pi user now. As far as I have seen it does not come with the password of 'raspberry' any more since they upgraded to bookworm ..
I think you can edit the boot partition to set a user up
"There are also mechanisms to preconfigure an image without using
Imager. To set up a user on first boot and bypass the wizard completely,
create a file called userconf or userconf.txt in the boot partition of
the SD card; this is the part of the SD card which can be seen when it
is mounted in a Windows or MacOS computer.
This file should contain a single line of text, consisting of username:encrypted- password – so your desired username, followed
immediately by a colon, followed immediately by an encrypted
representation of the password you want to use.
To generate the encrypted password, the easiest way is to use OpenSSL on
a Raspberry Pi that is already running – open a terminal window and enter
echo 'mypassword' | openssl passwd -6 -stdin
This will produce what looks like a string of random characters, which
is actually an encrypted version of the supplied password."
https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/
I think you can also use the values in /etc/shadow on another system to
clone a user and password.
But if you have another Linux system, and are using it to burn/modify
the boot disk image for the pi, this method works extremely well.
--
How fortunate for governments that the people they administer don't think.
Adolf Hitler
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)