By default raspi-config
adds an unencrypted WiFi password to the wpa_supplicant.conf
file.
To remove it do the following:
1 2 3 4 5 6 7 | # get root sudo su - # change to the wpa_supplicant dir cd /etc/wpa_supplicant # append a hashed Wifi password block wpa_passphrase "YOURSSID" "YourWifiPassword" >> /etc/wpa_supplicant/wpa_supplicant .conf |
Once you have done the above your /etc/wpa_supplicant/wps_supplicant.conf
will look similar to this:
1 2 3 4 5 6 7 8 9 10 11 12 13 | ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=AU network={ ssid="YOURWIFISSID" psk="YOURWIFIPASSWORD" } network={ ssid="YOURWIFISSID" #psk="YOURWIFIPASSWORD" psk=444ed0f3a0a84d62d54827847318ffd227affed4b29c7f5406eec43037c33027 } |
You now need to remove the duplicated network block and any references to your unencrypted WiFi password so it looks like this:
1 2 3 4 5 6 7 8 | ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=AU network={ ssid="YOURWIFISSID" psk=444ed0f3a0a84d62d54827847318ffd227affed4b29c7f5406eec43037c33027 } |
Getting the model of your Raspberry Pi from the command line
1 2 3 | echo $( tr -d '\0' < /sys/firmware/devicetree/base/model ) Raspberry Pi Zero 2 W Rev 1.0 |
0 Comments