Probably a little late but the documentation says "When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the file is deleted.".
It's similar for wpa_supplicant.conf (see documentation) "Put this file in the boot folder, and when the Pi first boots, it will copy that file into the correct location in the Linux root file system and use those settings to start up wireless networking."
I boot the Pi Zero W but it deletes the ssh file and the wpa_supplicant.conf on boot.
That's pretty weird, maybe the SD card does not persist the data.
Same problem as Lappy and Derick. Do you think I should replace the card? I'm using a ScanDisk that came with the kit.
Probably a little late but the documentation says "When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the file is deleted.".
It's similar for wpa_supplicant.conf (see documentation) "Put this file in the boot folder, and when the Pi first boots, it will copy that file into the correct location in the Linux root file system and use those settings to start up wireless networking."
Curiously, mine does the same! But only after booting the PI from it. A normal write, unmount, mount, read, works fine!
I was facing the same. This worked for me in wpa_supplicant.conf:
country=DE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="WLAN SSID"
scan_ssid=1
psk="WLAN PASSWORT"
key_mgmt=WPA-PSK
}
I also made sure, the file has unix line endings. Using vim, write the file using ':w ++ff=unix'.