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.
sudo dhclient wlp2s0
– chili555 Sep 05 '17 at 22:20iwconfig
still only supports WEP (which I hope you are not using) - see How to connect and disconnect to a network manually in terminal? for a comprehensive answer – steeldriver Sep 05 '17 at 22:39