Created
June 5, 2013 23:03
-
-
Save icholy/5718005 to your computer and use it in GitHub Desktop.
linux wpa connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list interfaces | |
iwconfig | |
# bring up the interface | |
ifconfig <IFACE> up | |
# scan for access points | |
iwlist <IFACE> scan | |
# connect & authenticate | |
wpa_passphrase <ESSID> <PASSPHRASE> > wpa.conf | |
wpa_supplicant -Dwext -i<IFACE> -cwpa.conf | |
# get an ip | |
dhclient <IFACE> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment