wpa debian

Notes on connecting to an 802.11X/WPA AP with wpa_cli

enable interface
# ifconfig wlan0 up


scan
# iwlist wlan0 scan
or

# iwlist wlan0 scan |egrep -i "ssid|signal|frequency|authenti"
to see just ESSID , Signal Strength , Quality, Frequency and Authentication suites for each cell

Interactive configuration of wpa_supplicant with wpa_cli
# echo "ctrl_interface=/run/wpa_supplicant" >> /etc/wpa_supplicant/t.conf
# echo "update_config=1" >> /etc/wpa_supplicant/t.conf
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/t.conf


Associate/Authenticate with the "thESSID" ssid
# wpa_cli
>scan
> scan_results
> add_network
0
> set_network 0 ssid "thESSID"
OK
> set_network 0 psk "thePASSWD"
OK
> enable network 0
OK
> save_config
OK
> quit


and then request an IP address from the DHCP server or set one manually
# ifconfig wlan0 192.168.168.13/24




wpa_cli debian