Celeb Glow
general | March 23, 2026

iwconfig - connect to wifi

I am trying to connect to wifi using terminal without any result.

My ESSID is "HOME", this is what I wrote into the terminal:

sudo iwconfig wlp2s0 essid "HOME" key s:MYPASSWORDHERE
Error for wireless request "Set Encode" (8B2A) : SET failed on device wlp2s0; Invalid argument."

So I tried to connect to an open wifi (my smartphone hotspot) using :

sudo iwconfig wlps0 essid "My ASUS"

(my android hotspot has no password) without any result or any sort of output...

PS: The same things work very well using GUI, I can connect to HOME (inserting password) and to "My ASUS" without password, as it should be.

4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy