- Locate the partion of the newly flashed Raspberry Pi OS.
- Create a new empty file named
sshwith no extension in the boot partition.
or
echo '' > sshRaspberry Pi OS has removed the default user pi due to security reason.
A default user has to be set up manually for a headless setup.
This file should contain a one liner in the format of username:encrypted-password.
Encrypted password can be generated using the following command
echo 'mysecretpassword' | openssl passwd -6 -stdinExample content of the file
pi:$6$vUTmd2FA3SDwyo8D$VVHQezE4UMpTr..5urbrUQho1p.q0sRD40MI0BjaEJguBzPFrJEGWDS.OKGkwn1laXe5Bma1PZhnl8gG36xzq0
echo pi:$(echo 'mysecretpassword' | openssl passwd -6 -stdin) > userconfWhere pi is the username and mysecretpassword is the password
https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/