How to Stop Ubuntu from Automatically Connecting to Hidden Wi-Fi

The Invisible Network Threat

Hidden Wi-Fi networks (SSIDs that do not broadcast their name) require you to manually enter the network name to connect. Once you establish a connection, Ubuntu’s NetworkManager saves the profile to make future connections easier. However, because the network isn’t broadcasting, Ubuntu must actively ping the environment looking for that specific hidden network. If you leave the “Automatically connect” setting enabled for a hidden network, your Ubuntu laptop will constantly broadcast the name of that hidden network everywhere you go, searching for it. This is a significant privacy and security risk, as malicious actors can intercept these probes and set up a rogue access point mimicking your hidden network to steal data.

Disabling Auto-Connect for Hidden SSIDs

To stop Ubuntu from automatically searching for and connecting to specific hidden Wi-Fi networks, you must modify the individual network profile settings within NetworkManager.

Open the GNOME Settings application and navigate to the Wi-Fi section. Since the network is hidden, it might not appear in the standard “Visible Networks” list unless you are currently connected to it. If you are not connected, you will need to open the advanced network connections editor. Open a terminal (`Ctrl + Alt + T`) and type nm-connection-editor, then press Enter. This launches a more detailed network management window. Find the specific hidden Wi-Fi network profile in the list and double-click it (or select it and click the gear icon at the bottom). In the editing window, go to the General tab. Look for the checkbox labeled Connect automatically with priority. Uncheck this box. Click Save to apply the changes. Ubuntu will no longer blindly broadcast requests for this hidden network, requiring you to manually initiate the connection when you actually need it.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.