Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have done the follow steps.

  • sudo ifconfig wlan0 up

  • sudo iwlist wlan0 scan (I see my access point without problem)


  • sudo iwconfig wlan0 essid MY_ESSID key s:MY_PASSWORD

I get the follow error:

 Error for wireless request "Set
 Encode" (8B2A) :
     SET failed on device wlan0 ; Invalid argument.

I used s: because I want to pass and ASCII password.

What is the error?

Thank you!

share|improve this question

migrated from May 20 '11 at 11:17

This question came from our site for professional and enthusiast programmers.

Are you trying to connect to an access point which is advertising wpa-psk/wpa2-psk? If you trying to use a wep passphrase, try doing it with your interface down. – freethinker May 19 '11 at 16:07
is wpa2-psk.... is iwconfig no good for it ? – Dail May 19 '11 at 16:09
no, you will have to use wpa_supplicant to connect to a wpa2-psk AP – freethinker May 19 '11 at 16:11

Since you're trying to connect to an AP advertising WPA2-PSK, you will have to use wpa_supplicant.

There are GUI frontend apps to connect, you could try wicd or networkmanager.

share|improve this answer

Your Answer


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