Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save peter279k/6d0607b09f64569a3c98000a79f6b249 to your computer and use it in GitHub Desktop.
Save peter279k/6d0607b09f64569a3c98000a79f6b249 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.

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