<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-change-raspberry-pi-wi-fi-details-from-the-sd-card-k2bbfmkpl" -->

---
title: How to Change Raspberry Pi Wi-Fi Details From the SD Card
description: A step-by-step method for reconfiguring a Raspberry Pi&#x27;s Wi-Fi credentials by editing the SD card directly on a Linux computer, useful when the device has no...
canonical: https://daily.dev/posts/how-to-change-raspberry-pi-wi-fi-details-from-the-sd-card-k2bbfmkpl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Change Raspberry Pi Wi-Fi Details From the SD Card | daily.dev
og:description: A step-by-step method for reconfiguring a Raspberry Pi&#x27;s Wi-Fi credentials by editing the SD card directly on a Linux computer, useful when the device has no...
og:url: https://daily.dev/posts/how-to-change-raspberry-pi-wi-fi-details-from-the-sd-card-k2bbfmkpl
og:image: https://api.daily.dev/og/posts/k2BbfMkPl.png
og:image:alt: How to Change Raspberry Pi Wi-Fi Details From the SD Card
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Change Raspberry Pi Wi-Fi Details From the SD Card

**[It's Foss](https://daily.dev/sources/itsfoss)** · 4 min read · 0 upvotes · 0 comments

## Summary

A step-by-step method for reconfiguring a Raspberry Pi's Wi-Fi credentials by editing the SD card directly on a Linux computer, useful when the device has no display/keyboard access and can't connect due to changed router SSID or password. Covers mounting the SD card, locating or creating the NetworkManager .nmconnection file under /etc/NetworkManager/system-connections/, setting correct file permissions with chmod 600, syncing and unmounting safely, and verifying the new connection using nmap, Angry IP Scanner, ping, or SSH. Tested on a Raspberry Pi 5 running Raspberry Pi OS based on Debian Trixie; noted as possibly inapplicable to setups still using wpa_supplicant.conf.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://feed.itsfoss.com/link/24361/17437078/change-raspberry-pi-wi-fi-from-sd-card>

## Questions this post answers

### How do I change the Wi-Fi SSID and password on a Raspberry Pi without connecting it to a monitor and keyboard?

Remove the microSD card, mount its rootfs partition on a Linux computer, and edit or create a .nmconnection file inside /etc/NetworkManager/system-connections/ with the new ssid and psk values under the [wifi] and [wifi-security] sections. Set file permissions to 600 with chmod, run sync, then unmount and reinsert the card into the Pi.

_Developers troubleshooting headless Raspberry Pi setups can find similar hands-on fixes curated on daily.dev._

### Where does Raspberry Pi OS store Wi-Fi connection profiles when using NetworkManager?

Wi-Fi connection profiles are stored as .nmconnection files inside /etc/NetworkManager/system-connections/ on the rootfs partition of the SD card. Each profile file contains sections for [connection], [wifi], [wifi-security], and IP settings, and must be readable only by root with chmod 600 permissions to work correctly.

_daily.dev helps hobbyists tracking Linux and Raspberry Pi config details stay prepared for these fixes._

### Why isn't editing wpa_supplicant.conf enough to fix Wi-Fi on my Raspberry Pi?

Recent Raspberry Pi OS releases, including versions based on Debian Trixie, use NetworkManager instead of wpa_supplicant for network configuration, so editing wpa_supplicant.conf has no effect on these systems. Instead, Wi-Fi credentials must be set in a .nmconnection file under /etc/NetworkManager/system-connections/ for the change to take effect.

_Staying aware of tooling shifts like this NetworkManager change is easier when following Linux updates on daily.dev._

---

Tags: [#linux](https://daily.dev/tags/linux), [#raspberry-pi](https://daily.dev/tags/raspberry-pi)

[View this post on daily.dev](https://daily.dev/posts/how-to-change-raspberry-pi-wi-fi-details-from-the-sd-card-k2bbfmkpl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Change Raspberry Pi Wi-Fi Details From the SD Card","url":"https://daily.dev/posts/how-to-change-raspberry-pi-wi-fi-details-from-the-sd-card-k2bbfmkpl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-change-raspberry-pi-wi-fi-details-from-the-sd-card-k2bbfmkpl"},"datePublished":"2026-09-02T09:18:58.949Z","dateModified":"2026-09-02T09:19:36.021Z","description":"A step-by-step method for reconfiguring a Raspberry Pi's Wi-Fi credentials by editing the SD card directly on a Linux computer, useful when the device has no...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/50b6fde24b6b5fdef4865f93b843cf89?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/50b6fde24b6b5fdef4865f93b843cf89?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"It's Foss","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"It's Foss","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/582e3faed71842bfb9d3840a787d6700","url":"https://daily.dev/sources/itsfoss"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-change-raspberry-pi-wi-fi-details-from-the-sd-card-k2bbfmkpl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"linux,raspberry-pi","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"It's Foss","item":"https://daily.dev/sources/itsfoss"},{"@type":"ListItem","position":3,"name":"How to Change Raspberry Pi Wi-Fi Details From the SD Card"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-change-raspberry-pi-wi-fi-details-from-the-sd-card-k2bbfmkpl#faq","mainEntity":[{"@type":"Question","name":"How do I change the Wi-Fi SSID and password on a Raspberry Pi without connecting it to a monitor and keyboard?","acceptedAnswer":{"@type":"Answer","text":"Remove the microSD card, mount its rootfs partition on a Linux computer, and edit or create a .nmconnection file inside /etc/NetworkManager/system-connections/ with the new ssid and psk values under the [wifi] and [wifi-security] sections. Set file permissions to 600 with chmod, run sync, then unmount and reinsert the card into the Pi. Developers troubleshooting headless Raspberry Pi setups can find similar hands-on fixes curated on daily.dev."}},{"@type":"Question","name":"Where does Raspberry Pi OS store Wi-Fi connection profiles when using NetworkManager?","acceptedAnswer":{"@type":"Answer","text":"Wi-Fi connection profiles are stored as .nmconnection files inside /etc/NetworkManager/system-connections/ on the rootfs partition of the SD card. Each profile file contains sections for [connection], [wifi], [wifi-security], and IP settings, and must be readable only by root with chmod 600 permissions to work correctly. daily.dev helps hobbyists tracking Linux and Raspberry Pi config details stay prepared for these fixes."}},{"@type":"Question","name":"Why isn't editing wpa_supplicant.conf enough to fix Wi-Fi on my Raspberry Pi?","acceptedAnswer":{"@type":"Answer","text":"Recent Raspberry Pi OS releases, including versions based on Debian Trixie, use NetworkManager instead of wpa_supplicant for network configuration, so editing wpa_supplicant.conf has no effect on these systems. Instead, Wi-Fi credentials must be set in a .nmconnection file under /etc/NetworkManager/system-connections/ for the change to take effect. Staying aware of tooling shifts like this NetworkManager change is easier when following Linux updates on daily.dev."}}]}
```

