32 votes
Accepted

Subsequent calls to wpa_supplicant fail - can't connect to wifi

I'm embarrassed to say the solution was to kill the already running wpa_supplicant process. The -B argument causes the program to fork into the background, and trying to run it again will fail as ...
  • 581
30 votes

Hiding passwords in wpa_supplicant.conf with WPA-EAP and MSCHAP-v2

Open terminal and type : wpa_passphrase YOUR_SSID YOUR_PASSWORD Sample output: network={ ssid="YOUR_SSID" #psk="YOUR_PASSWORD" psk=...
  • 59.3k
26 votes

Hiding passwords in wpa_supplicant.conf with WPA-EAP and MSCHAP-v2

You can generate the NtPasswordHash (aka NTLM password hash) yourself as follows: echo -n plaintext_password_here | iconv -t utf16le | openssl md4 Prefix it with "hash:" in the wpa_supplicant.conf ...
  • 3,814
16 votes
Accepted

Failed to open config file '/dev/fd/63', error: No such file or directory for wpa_supplicant

Quoting the ArchLinux wiki: Note: Because of the process substitution, you cannot run this command with sudo - you will need a root shell. You should be able to use su -c under sudo like so: $ ...
16 votes

Failed to open config file '/dev/fd/63', error: No such file or directory for wpa_supplicant

Process substitution <(…) creates a pipe, uses /dev/fd to give a path that's equivalent to the file descriptor where the pipe is, and passes the file name as an argument to the program. Here the ...
15 votes
Accepted

Command to print name of SSID to which I am connected

How about iwgetid? The iwgetid(8) man page says: iwgetid is used to find out the NWID, ESSID or AP/Cell Address of the wireless network that is currently used.
  • 11.4k
8 votes

Difference between systemd wpa_supplicant.service and wpa_supplicant@wlan0.service?

As stated on here, the wpa_supplicant.service file is for DBus aware services, so it will be autodetected by NetworkManager for example. As I imagine you are not using NetworkManager, either you have ...
  • 226
7 votes

Make systemd stop starting unwanted wpa_supplicant service?

The sudo systemctl disable wpa_supplicant + sudo systemctl stop wpa_supplicant will ONLY temporarily disable wpa_supplicant service until the network manager restarts and/or the system reboots. So, to ...
  • 71
6 votes

What is the simplest way to connect to wireless on a Debian system with nothing but essential?

You can bring up the wireless interface from the command line to get yourself bootstrapped. Debian Jessie's essential packages have all you need to do this. Let's say the SSID is "example" and its ...
  • 1,299
6 votes
Accepted

How to generate a hotspot that does not requires password?

It is not possible to create an open hotspot through wifi hotspot command , because nmcli will generate a password for you (WPA or wep) , the --show-secrets option will be used to print the password. ...
  • 59.3k
6 votes

Manual Configuration or WPA Supplicant for WiFi on a University Network

I would recommend not to use different network interface for different WLANs, but instead use one interface and the roaming mode if wpa_supplicant, using wpa_supplicant.conf for the WLAN details. That'...
  • 29.7k
6 votes
Accepted

wpa_supplicant wifi-direct connection between Linux and Android

It needs not only wpa_supplicant but also iwpriv, hostapd, dhcpd. here is what I did for wifi-direct connect. Device Mode ( Linux requests connection to Android) ifconfig wlan0 192.168.1.15 up ...
  • 181
5 votes

Understanding wpa_supplicant

The cheap Realtek wifi firmware, linux kernel drivers and the hardware itself are terribly buggy. People in the ARM community have been working around the clock to try to mitigate some of the ...
5 votes
Accepted

wpa_supplicant and network management tools

The two option are wicd-cli (noted in the comment by meuh) and networkmanager. Which to use is matter of personal preference. I use networkmanager just because it has a better manual (but that, ...
  • 8,291
5 votes

Make systemd stop starting unwanted wpa_supplicant service?

I ran into the same issue as yours. After some digging, I found a folder called: /usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service This is file is used to allow the service to be ...
  • 51
5 votes
Accepted

How to view the WPA2 PEAP certificate offered by an AP?

You could use Wireshark to dump the handshake, then convert the binary data to PEM with openssl, as suggested by @grawity in a similar question at superuser: Sadly, wpa_supplicant doesn't have an ...
  • 168
5 votes
Accepted

Successfully initialized wpa_supplicant yet I'm not connected, and can't reach wpa_cli

The recommended method of connecting wpa_cli to wpa_supplicant is outlined here. The issue is because your configuration does not provide ctrl_interface, which wpa_cli uses to interact with ...
5 votes
Accepted

How to disconnect wifi link, that was connected with wpa_supplicant

Before connecting a to a different AP you can stop the running instance of the wpa_supplicant service: sudo killall wpa_supplicant Configure your /etc/wpa_supplicant/connection.conf then connect ...
  • 59.3k
5 votes
Accepted

TU Berlin eduroam - How to get Wireless LAN working with wpa_supplicant.conf and hashed password

The question how to hash your password, so you can store it without running the danger of someone sneaking into your files to grab your TU password. Since you don't want to be enrolled in some random ...
5 votes

Where is my `/etc/wpa_supplicant.conf` on systemd?

From the archwiki: At boot (systemd) The wpa_supplicant package provides multiple systemd service files: wpa_supplicant.service - uses D-Bus, recommended for NetworkManager users. wpa_supplicant@...
4 votes

Failure to connect to hidden SSID with WPA Supplicant on Debian?

You need to use scan_ssid to connect to hidden SSIDs. In your configuration it will be: auto wlan0 iface wlan0 inet dhcp wpa-ssid MySSID wpa-psk myHashedPSK wpa-scan-ssid 1 In ...
4 votes

Connect to hidden Wifi AP with wpa-supplicant?

I've not found official documentation about the /etc/network/interfaces config. You can find the documentation at /usr/share/doc/wpasupplicant/README.Debian.gz. Under Chapter 4: Troubleshooting there'...
  • 41
4 votes
Accepted

wpa_supplicant gives rfkill errors upon connection?

Those two errors of rfkill are by Rfkill, a tool for enabling and disabling wireless devices. Most of the time the kernel does not have rfkill enabled in it. And so there is no /dev/rfkill file ...
4 votes

wpa_supplicant and network management tools

You can manage network from command line through: 1)wpa_cli I assumes that wpa_supplicant is already running . type: nmcli It will show a prompt similar to this: wpa_cli v2.3 Copyright (c) 2004-...
  • 59.3k
4 votes
Accepted

How to disable logging of wpa_supplicant into syslog

If you are using rsyslog or similar you can edit your config file /etc/rsyslog.conf or similar. Find the line referring to /var/log/syslog, for example, *.*;auth,authpriv.none -/var/log/...
  • 46.2k
4 votes
Accepted

How to export the current wpa_cli network to a file?

You should add update_config=1 to your configuration file , it will give the rights to update it. there is an example : edit the /etc/wpa_supplicant/wpa_supplicant_example.conf , add the following ...
  • 59.3k
4 votes
Accepted

Manual Configuration or WPA Supplicant for WiFi on a University Network

Here is what I have for my /etc/network/interfaces file. # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). #...
  • 1,043
4 votes

WiFi scans show SSID of a powered off network for several scans afterwards

In the default configuration wpa_supplicant might display scan results that have been cached for some time. Add this line to your wpa_supplicant.conf file to have the scan results only show those ...
  • 303
4 votes
Accepted

Where is my `/etc/wpa_supplicant.conf` on systemd?

man wpa_supplicant: QUICK START First, make a configuration file, e.g. /etc/wpa_supplicant.conf, that describes the networks you ...
4 votes
Accepted

Connecting to WPA2 from command line, without editing a configuration file

Starting with the ideas already hinted at in my comment I would like to offer an answer. The answer is tested to work in the specific case of using a combination of wpa_supplicant (version v2.6), ...

Only top scored, non community-wiki answers of a minimum length are eligible