Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

How can I find out what type of security a wireless access point (essid) is using? wep/wpa/wpa2 (preferably using commandline tools)

share|improve this question

1 Answer 1

up vote 7 down vote accepted

You can use the iwlist tool to print out all details of access points nearby. Assuming your wireless device is called wlan0:

sudo iwlist wlan0 scan

The output from iwlist will show each 'Cell' (or access point) that it finds, including the following details about the encryption type:

                    IE: IEEE 802.11i/WPA2 Version 1
                    Group Cipher : TKIP
                    Pairwise Ciphers (2) : CCMP TKIP
                    Authentication Suites (1) : PSK

This indicates that a network near me is using WPA2, using a pre-shared key (PSK).

share|improve this answer
Why sudo?. You should be able to use iwlist as a normal user, at least I can in my computer. –  Javier Rivera Oct 25 '12 at 7:43
From the iwlist manpage, "Triggering scanning is a privileged operation (root only) and normal users can only read left-over scan results". –  Sepero Oct 25 '12 at 16:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.