Raspberry pi os Bullseye 64bit ssh password not 'raspberry' anymore?

17.5k views Asked by At

I've been having problems with the raspberry pi imager so just downloaded the latest 64bit os from their site. Then used Belena Etcher to etch the image. Made the ssh file and the wpa_supplicant file.

It's showing on the network but for some reason I can't connect via ssh via terminal with ssh [email protected], it asks for a password but when I enter 'raspberry' it won't work. Has something changed?

3

There are 3 answers

3
Gotenks On

There is no longer a default username/password.

Have a look at: https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/

0
InputBlackBoxOutput On

This answer is an extension of the answer provided by @Gotenks.

Create a file named userconf in the boot folder to create a user. The contents of the file are as follows

username:password-hash

The password-hash is generated using the following command

echo "password" | openssl passwd -6 -stdin

For example boot/userconf can be:

pi:$6$38HiUnLhwlE1DRdL$MHHb6/OsyAlZNqmW7igj333g/CRwG/g5nls7ylTEqZZg9rOIM/cUvE962.5x6M0ONMz/r6OlBy/G6f4v8zrH51

Ubuntu way

If you use Ubuntu as host system then you can configure password very easy. Mount, make cd to your pi's boot folder and run script: how mount image

cat <<EOF > userconf
pi:$(echo "password" | openssl passwd -6 -stdin)
EOF
0
crusy On

In case you have a headless Pi (say, the Pi Zero W), you may find it usefull that the official "Raspberry Pi Imager" supports setting up an ssh user account (and the Wifi, the keyboard layout, the timezone, ...) for the image being flashed. Just use the "settings" button at the lower right corner:

the settings button