Skip to content

Instantly share code, notes, and snippets.

@icholy
Created June 5, 2013 23:03
Show Gist options
  • Save icholy/5718005 to your computer and use it in GitHub Desktop.
Save icholy/5718005 to your computer and use it in GitHub Desktop.
linux wpa connection
# 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