Cannot change wifi network (post-install)

  • Klipper installed on Raspberry pi4 -

Hello, I have one 2.4ghz and one 5ghz wifi network at home. I do not have the possibility to connect the raspberry via ethernet. The raspberry is normally connected to the 5ghz network, but due to some reasons the 5ghz network will be turned off soon so I have to move the connection of the raspberry on the 2.4 ghz.

I connected via ssh and run sudo raspi-config and set the new ssid and password but I got the error from the terminal:

“Secrets were required but not provided”

I read on stackexchange that the issue could be solved running:

nmcli con delete <SSID>

An then:

nmcli dev wifi connect <SSID> password <password>

The problem is that I’m worried that running the first command would cut the connection via wifi and then I’m not be able to communicate again with the raspberry via ssh since I cannot use ethernet.

Any suggestion?

You could connect using a USB-RS232 cable and terminal program.

Alternatively, just make any changes directly to the SD card on another device.

The needed commands depend on the distribution you are using.
Only the latest bookworm releases of the RPi OS are using Network Manager.

The easiest solution (IF Network Manager is available) is using the graphical interface that can be called via the nmtui command.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.