Skip to main content
45 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=...
GAD3R's user avatar
  • 67.2k
31 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 ...
bkane521's user avatar
  • 571
29 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 dgst -md4 -provider legacy Prefix it with "hash:&...
Guido's user avatar
  • 4,144
19 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 ...
Gilles 'SO- stop being evil''s user avatar
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: $ ...
Alexander Batischev's user avatar
12 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 ...
Habibie's user avatar
  • 121
8 votes

Difference between systemd wpa_supplicant.service and [email protected]?

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 ...
RDP's user avatar
  • 236
8 votes
Accepted

Failed to initialize control interface /run/wpa_supplicant in journal but yet wlan works

You need to stop the NetworkManager service which use wpasupplicant. sudo systemctl stop NetworkManager kill all wpasupplicant instances: sudo killall wpasupplicant or sudo killall wpa_supplicant ...
GAD3R's user avatar
  • 67.2k
7 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. ...
GAD3R's user avatar
  • 67.2k
7 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'...
dirkt's user avatar
  • 32.5k
7 votes
Accepted

Hotspot network creation took too long and failed activation

I was also hitting this issue on Ubuntu 21.10: >nmcli connection up bridge-slave-wlp4s0 Error: Connection activation failed: 802.1X supplicant took too long to authenticate The only thing that ...
GaspardP's user avatar
  • 186
6 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, ...
grochmal's user avatar
  • 8,707
6 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 ...
darmual's user avatar
  • 178
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 ...
GTKoo's user avatar
  • 191
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 ...
BrettB's user avatar
  • 51
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 ...
marceloneil's user avatar
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 ...
GAD3R's user avatar
  • 67.2k
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 ...
Patrick Abraham's user avatar
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@...
Tyler Chambers's user avatar
5 votes

debian - connect to wifi automatically when in range

Solution: Network-Manager without GUI. I tried half a dozen tutorials using wpa-supplicant, iw and /etc/network/interfaces. But they all did not work for me. Probably because they did not describe at ...
JPT's user avatar
  • 402
5 votes
Accepted

2.4 GHz Wi-Fi associating timing out

Solved by applying options iwlwifi i11n_disable=1 to /etc/modprobe.d/iwlwifi.conf On newer versions the option is renamed as 11n_disable
Vojtěch Hořánek's user avatar
5 votes
Accepted

How to confirm I'm connected with WPA3 (on Linux Mint 20.2)?

Your command did select a wrong interface. Run the sudo wpa_cli -i wlp60s0 status command to get the correct interface. Here is my output with wlan0 selected by default, so I did not need to ...
Artem S. Tashkinov's user avatar
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-...
GAD3R's user avatar
  • 67.2k
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/...
meuh's user avatar
  • 51.9k
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 ...
GAD3R's user avatar
  • 67.2k
4 votes

How to generate a hotspot that does not requires password?

nmcli device wifi hotspot is merely a convenience function for creating and activating a hotspot profile. Indeed, that does not support open hotspots. However, you can just create a suitable ...
thaller's user avatar
  • 1,656
4 votes

How to generate a hotspot that does not requires password?

Yes, you can create an open wifi network access point without implementing security protocols using nmcli and NetworkManager. Use the following command nmcli connection add \ type wifi \ ...
Josiah DeWitt's user avatar
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). #...
jbrock's user avatar
  • 1,171
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 ...
oh.dae.su's user avatar
  • 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 ...
jasonwryan's user avatar
  • 73.4k

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