简体   繁体   中英

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

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 pi@ip.address, it asks for a password but when I enter 'raspberry' it won't work. Has something changed?

There is no longer a default username/password.

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

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:

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

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 technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM