Introduction
I often tend to update the WiFi password for my network from time to time and when I do that I need to update the password on my Raspberry Pi as well since these are headless devices and I don’t have a monitor or keyboard attached to them.
Changing the wifi password after the first installation can be tricky sometimes and it is not always clear how to do it. After spending some time on the internet this is the solution that worked the best for me consistently.
Raspi-Config to the rescue
The easiest way to update the wifi password is to use the raspi-config
tool. This tool is a configuration tool for the Raspberry Pi and it is installed by default on all the Raspberry Pi OS.
Use the tool with sudo privileges:
Select the System Options
menu and then Wireless LAN
. You will be prompted to enter the SSID and the password for the new network.
After updating the password you can hit the Finish
button and reboot the Raspberry Pi.
This is it on the Raspberry Pi side. Now you can update your actual WiFi password and the Raspberry Pi will connect to the new network.
Conclusion
This is a quick guide on how to update the WiFi password on a Raspberry Pi. I hope you found it useful and if you have any questions feel free to drop me a text on Twitter / X ↗️.
See you in the next one! 👋