Skip to content

Instantly share code, notes, and snippets.

@voidbert
Created February 7, 2024 16:54
Show Gist options
  • Save voidbert/da82f2e55e9fadafea0d809d3a63c3a0 to your computer and use it in GitHub Desktop.
Save voidbert/da82f2e55e9fadafea0d809d3a63c3a0 to your computer and use it in GitHub Desktop.
Connecting to eduroam (UMinho) using nmcli
#!/bin/sh
nmcli con add \
type wifi \
con-name "eduroam" \
ifname "XXXXXXXXX" \ # Replace with interface name
ssid "eduroam" \
wifi-sec.key-mgmt "wpa-eap" \
802-1x.identity "aXXXXXX@alunos.uminho.pt" \
# 802-1x.password "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \ # must actually be password file
802-1x.system-ca-certs "yes" \
802-1x.domain-suffix-match "uminho.pt" \
802-1x.eap "peap" \
802-1x.phase2-auth "mschapv2"
nmcli connection up eduroam --ask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment