3

I want to change the password for my wifi network foo.

I've got a raspberry pi connected to foo. I only use SSH to talk with it. The pi is headless, and it isn't convenient to attach a monitor+keyboard or hardline. /etc/wpa_supplicant/wpa_supplicant.conf on the pi has lines like this:

network={
    ssid="foo"
    psk=deadbeefdeadbeefdeadbeefdeadbeefdeadbeef
}

Can I just duplicate that config with the new password? Like so:

network={
    ssid="foo"
    psk=deadbeefdeadbeefdeadbeefdeadbeefdeadbeef
}

network={
    ssid="foo"
    psk=abcdabcdabcdabcdabcdabcdabcdabcdabcdabcd
}

2 Answers 2

4

Yes

This works. The network manager will try connecting to each one.

1
  • 1
    @msp9011 it looks like a pretty definite answer to me. Commented Nov 13, 2018 at 7:39
2

Additionally to that, Wifi configuration can be done easily via the raspi-config

After connected via ssh:

sudo raspi-config

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .