I've a problem with Netplan not connecting to WiFi network with hidden SSID. It works great if I'll make this network visible. But no chance with hidden one. Any options to configure that?


Based on my reading of the official source code, this does NOT work yet. Netplan delegates WiFi connection to wpa_supplicant, but there are no provisions to emit the "scan_ssid=1" configuration line that wpa_supplicant expects.

See write_wpa_conf(): https://github.com/CanonicalLtd/netplan/blob/1265de994bd1ff5e1dad573d816b9201127206b3/src/networkd.c

However, by gross abuse of string escaping in the SSID name, I did get my connection to work.

"MYREALSSID\"\n  scan_ssid=1\n# \"hack!":
  password: "MYSSIDPASSWORD"

eventually becomes:

# "hack!"

(Note the comment to swallow the open double quote).

I'm too lazy to create an Ubuntu account to file a bug, but IMO this really is a significant one.

New contributor
dengel is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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