I'm not sure I'd be using Network Manager if I wanted to lock a machine to a single SSID. The way I do it is by hashing the wpa key and configuring wireless in /etc/network/interfaces - this will prevent NM from managing the wireless connection. Looks like this - You don't have to hash the passphrase in /etc/network/interfaces but I prefer to do so - plain text will work just fine.
How to get the hash? Glad you asked
when generating a hash if your passphrase contains spaces enclose it in double quotes but don't quote a plaintext key in /etc/network/interfaces.
Hope this helps -
Code:
auto wlp2s0allow-hotplug wlp2s0 iface wlp2s0 inet dhcp wpa-ssid ssid-goes-here wpa-psk 32e1d4c0b9a27c37faecabf486837d4532fe8c715c68043a129b8b130f4c1b39
How to get the hash? Glad you asked

Code:
wpa_passphrase <SSID> <KEY>
Hope this helps -
Statistics: Posted by wizard10000 — 2024-07-05 11:15 — Replies 3 — Views 69