Connect to hidden Wifi AP with wpa-supplicant

command linenetworkingwifiwpa-supplicant

I have a headless Debian machine, with a Wifi dongle connected. I used to hide the Wifi AP, but now I can't.

If I unhide it, some lines in the /etc/network/interfaces will allow me to connect:

auto wlan0
iface wlan0 inet dhcp
        wpa-ssid <name>
        wpa-psk <hex/raw pwd>

If I hide the AP, add this line, then restart the interface, it won't work (DHCP gets no IP):

wpa-ap-scan 2


I've not found official documentation about the /etc/network/interfaces config.

What can I do now?

Best Answer

Finally, I've found out a solution, just an other line (previous not needed: wpa-ap-scan)

wpa-scan-ssid 1

I've not really found it in any documentation... just in a forum post.

Related Question