0

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

Yes

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

  • 1
    @msp9011 it looks like a pretty definite answer to me. – roaima Nov 13 '18 at 7:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.