Connect To Wifi From The Linux Command Line -

Lots of people like graphical utilities for managing their computers, but plenty don't too. If you prefer command line utilities, managing WiFi can be a real pain. Well, it doesn't have to be. wpa_supplicant can be used as a command line utility. You can actually set it up easily with a simple configuration file.
This is a companion discussion topic for the original entry at

Jimmy Ilenloa

thank you. I used this to activate the wps. the wpa_cli command is great

Usman Ahmad Khan -> Jimmy Ilenloa

how to restart wpa_supplicant?


looks like you didnt comment out the password line on the image at the end? are you suppose to comment it out or no?

pa_passphrase networkname password > /etc/wpa_supplicant/wpa_supplicant.conf
-bash: /etc/wpa_supplicant/wpa_supplicant.conf: Permission denied
i need your help guys PLEASE

It all works for me except the part where it doesn’t connect to the network after restarting wpa_supplicant.
I was hoping to find actual command lines for connecting to Wifi from the Linux command line, like the title of the page…
But can anyone suggest why wpa_supplicant would ignore a conf file identical to the one given on this page aside from ssid and password?