So basically, I'd like to use iwconfig
to connect to my wifi network when I'm not inside X. But I just don't see a way to do it in the man page. Any idea?
Ubuntu – How to connect to a WPA wifi network using the command line
command linewirelesswpa
Best Answer
iw
(list/config) can only handle WEP.You need the
wpasupplicant
package which provides thewpa_supplicant
command, install if necessary throughsudo apt-get install wpasupplicant
.You put your SSID and password into
/etc/wpa_supplicant.conf
(requires sudo).Example:
Assuming your interface is wlan0 you can connect with:
"wext" is a driver and that will be specific for each card; refer to
wpa_supplicant -h
. Examples: