Wi-Fi
- Identify the available networks:
iwlist <interface> | grep 'Cell\|Quality\|ESSID\|IEEE'
- Create a configuration file for the Wi-Fi network:
#WEP
network={
ssid="<SSID>"
key_mgmt=NONE
wep_key0=<key>
wep_tx_keyidx=0
}
#WPA
network={
ssid="<SSID>"
psk="<PSK>"
#comment line below if not WPA3
key_mgmt=SAE
}
# WPA Enterprise
network={
ssid="<SSID>"
key_mgmt=WPA-EAP
identity="<domain>\<username>"
password="<password>"
}
WPA_Supplicant
wpa_supplicant -c <config> -i <interface>
NMCLI
nmcli radio wifi on
nmcli device wifi connect "<SSID>" password "<password>"
nmcli device wifi connect <MAC of AP> password <password> hidden yes