-
Download imager from https://www.raspberrypi.org/downloads/ /
sudo apt install rpi-imager -y -
Install Raspbian lite on the SD. For newer >Bookworm click on the gear and setup WiFi and ssh from the imager. Bookworm doesn't use wpa_supplicant.conf
I had issues. So i connected via WiFi, enabled wifi with sudo raspi-config. Then generated a pair key, copied to the client, set 600 for key and 644 for pub and was able to passwordless ssh via wifi.
To manage static IP and DNS: