Amadeusz Wieczorek

Setting up Raspberry Pi has changed a bit since when I first used it, and most of search results on the web describe steps applicable to Raspbian versions before Raspbian Bullseye (released in April 2020).

Specifically, before Raspbian Bullseye you could run ssh pi@raspberrypi and use the default password raspberry. Now, you need to generate the password using openssl.

Here are the newest (as of 2022) steps needed to get set up a headless Raspberry pi, specifically with Raspbian Bullseye (released on April 2020) and later:

Generate the password

$ echo 'password' | openssl passwd -6 -stdin
$6$k5M8bJM8sciQg4N4$8STzoHVsSyzdjpzjuUhn6UDhxcbe/JlQB4WUbEBPl/1kIRBd8q3QA.I4h6hGCEdACLgt3ejDQj4qJIxNohOts0

Setup the headless raspberry pi

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
     ssid="ssid name"
     psk="password"
     scan_ssid=1
}

First boot