Update Wifi Password on Raspberry Pi in Headless Mode

📆 · ⏳ 2 min read · ·


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:

Terminal window
sudo raspi-config

Select the System Options menu and then Wireless LAN. You will be prompted to enter the SSID and the password for the new network.

Main configuration menu
Main configuration menu
System Options menu
System Options menu

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.


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! 👋

You may also like

  • Resolving Missing Memory Stats in Docker Stats on Raspberry Pi

    Running Docker containers on your Raspberry Pi can be a great way to explore different software and services. However, encountering issues with retrieving memory usage information using docker stats can be frustrating. In this blog post will dive into the common reasons behind missing memory stats and guide you through the troubleshooting steps to resolve them.

  • Fix Sudo not asking Password on Raspberry Pi

    If you have installed a fresh copy of Debian or Raspbian on your Raspberry Pi you might notice that sudo does not ask for a password. This is a security risk and should be fixed. Let's see how to fix it.

  • Increase Swap Memory on Raspberry Pi

    There can be multiple scenarios where you need to increase the swap memory size on your Raspberry Pi. This post will show you how to do it.