Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
Last active May 3, 2024 03:57
Show Gist options
  • Save CMCDragonkai/a802a6bf9fd2de22fabe84b740f10a54 to your computer and use it in GitHub Desktop.
Save CMCDragonkai/a802a6bf9fd2de22fabe84b740f10a54 to your computer and use it in GitHub Desktop.
WeWork WiFi on Linux with `nmcli`

WeWork WiFi on Linux

When using nmcli device wifi connect 'WeWorkWiFi' password '...', you'll get something like:

Error: Failed to add/activate new connection: Failed to determine AP security information

To actually use it, you need to create a connection first and configure it:

nmcli connection add type wifi ifname <INTERFACE> con-name WeWorkWiFi ssid WeWorkWiFi
nmcli connection edit WeWorkWiFi
nmcli> set 802-1x.eap peap
nmcli> set 802-1x.phase2-auth mschapv2
nmcli> set 802-1x.identity <USERNAME>
nmcli> set 802-1x.password <PASSWORD>
nmcli> set wifi-sec.key-mgmt wpa-eap
nmcli> save
nmcli> activate
Ctrl + D

Then it will be connected.

@venthur
Copy link

venthur commented Nov 15, 2023

Thank you! This seems somewhat equivalent to creating a wifi connection for a hidden network, e.g. setting up everything before trying to connect, which works as well. Do you know what the underlying problem is? I wonder if this is an issue with WeWork's WiFi setup or some bug with Linux tooling.

@CMCDragonkai
Copy link
Author

No idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment