I am using a Raspberry Pi Zero 2W for some development, and am having trouble with headless operation through SSH.
The usual method is via "ssh [email protected]". This is on and off functional for me, and I often have to resort to connecting a monitor etc. to find the IP address.
The error when ".local" doesn't work is "ssh: Could not resolve hostname ccp.local: name or service not known".
I have found this guide about using Bonjour and Avahi, which I implemented at least a year ago, and still get the exact same problem here and there.
I have also tried this and this guide regarding setting up ssh over USB, then attempting ssh via both command line and PuTTY, which again results in the above error when using command prompt, and the error "Unable to open connection to raspberrypi.local. Host does not exist".
Using the IP address instead of raspberypi.local seems to always work, but the intended use case for the pi is rather reliant on headless being functional upon startup.
Does anyone know why this is so unreliable?