我需要使用以下命令连接到没有密码的隐藏网络wpa_supplicant
:
iwlist <interface> scan
输出:
Cell 02 - Address: 11:22:33:44:55:66
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=67/70 Signal level=-43 dBm
Encryption key:on
ESSID:""
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=##################
Extra: Last beacon: 248ms ago
IE: Unknown: ######
IE: Unknown: ##################
IE: Unknown: #####
IE: Unknown: ##############
IE: Unknown: ######
IE: Unknown: ###############
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: ###################
wpa_supplicant
连接到该网络所需的配置文件是什么?
错误猜测:
network={
ssid=""
bssid=11:22:33:44:55:66
}
答案1
根据Wiki-Archlinux你应该添加scan_ssid=1
到你的wpa_supplicant
配置文件中:
提示:要将网络块配置为隐藏的无线 SSID(根据定义,该 SSID 在常规扫描中不会出现),
scan_ssid=1
必须在网络块中定义该选项。
要连接到开放网络,您需要将该key_mgmt=NONE
选项添加到wpa_supplicant
配置文件中:
network={
ssid=""
bssid=11:22:33:44:55:66
scan_ssid=1
key_mgmt=NONE
}