Feedback

type to search

By: Asked from Peru

How can I connect to Wifi from the terminal?

I'm using WEP key with a 5 chars password.
3

magicfab [ Admin ]

Did I mention using WEP is insecure, and specifying a key directly in a command will show up in logs, etc, making this really only justified for testing purposes ? You've been warned :) I'd advise using WPA2 instead, which requires setting up configuration files. Ideally, Radius authentication. If you have questions about those, please ask them separately.

To find out which access points are available to you:
iwlist wlan0 scan | less

If using Ubuntu desktop (as opposed to server), disable the graphical Network Manager:
sudo service network-manager stop

Assuming the access point is named “Linksys” and the key is in hex format:
sudo iwconfig wlan0 essid “Linksys” key “0a2b4c6de9”

If the key is in ASCII format:
sudo iwconfig wlan0 essid “Linksys” key “s:hello”


For more details on iwconfig check its manpage parameteres section:
http://manpages.ubuntu.com/manpages/lucid/en/man8/iwconfig.8.html#toptoc3
or Cancel
You need to join Ubuntu to complete this action, click here to do so.