Update Wifi Password on Raspberry Pi in Headless Mode

📆 · ⏳ 2 min read · · 👀

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:

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.

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

You may also like

  • # raspberrypi

    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.

  • # raspberrypi

    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.

  • # nodejs# raspberrypi

    Get Up and Running with the Latest Version of Node.js on Raspberry Pi

    Do you want to run the latest version of Node.js on your Raspberry Pi? This guide will take you through the process of installing the latest version of Node.js on armhf architecture using binary packages.