LinuxCommandLibrary

wpa_supplicant

WPA/WPA2 wireless network authentication

TLDR

Start with config

$ wpa_supplicant -i [wlan0] -c [/etc/wpa_supplicant.conf]
copy
Run in foreground
$ wpa_supplicant -i [wlan0] -c [config.conf] -d
copy
Background daemon
$ wpa_supplicant -i [wlan0] -c [config.conf] -B
copy
Use specific driver
$ wpa_supplicant -i [wlan0] -c [config.conf] -D [nl80211]
copy

SYNOPSIS

wpa_supplicant [-i interface] [-c config] [-B] [-D driver]

DESCRIPTION

wpa_supplicant is the standard wireless network authentication daemon for Linux systems. It implements WPA, WPA2, and WPA3 security protocols, handling the key negotiation and authentication process required to connect to protected wireless networks.
The daemon supports both personal (PSK) and enterprise (802.1X/EAP) authentication methods, and can manage multiple configured networks with automatic selection based on signal strength and priority. Configuration is defined in a config file specifying network SSIDs, security settings, and credentials.
On most desktop Linux systems, wpa_supplicant runs as a backend service managed by NetworkManager or systemd-networkd rather than being invoked directly by users.

PARAMETERS

-i IFACE

Interface name.
-c FILE
Config file.
-B
Background mode.
-D DRIVER
Driver backend.
-d
Debug output.
-P FILE
PID file.

CAVEATS

Root required. Config file syntax. Usually managed by NM.

HISTORY

wpa_supplicant was created by Jouni Malinen for wireless network authentication on Linux.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community