How to connect WiFi to a specific AP?

Jeffrey Walton noloader at gmail.com
Fri Jul 19 17:03:26 UTC 2024


On Fri, Jul 19, 2024 at 12:55 PM Bo Berglund <bo.berglund at gmail.com> wrote:
>
> Is it possible to configure a Linux machine to connect by WiFi to a specific
> Access point when there are several using the same SSID/Password?

I may be mistaken, but the one-shared-password-for-everyone is the
dominant use case supported by WiFi. The outliers are auth mechanisms
like client certificates.

> If so how can it be accomplished on the command line (I only have ssh access to
> my Linux boxes).

It looks like Linux may support it. See
<https://arstechnica.com/civis/threads/forcing-os-x-to-connect-to-a-specific-ap-by-mac-address.185083/>
and use of iwconfig and the AP's MAC address:

    iwconfig ath0 ap 00:01:02:03:04:05

Also see <https://askubuntu.com/questions/887676/connect-to-wireless-ap-by-mac-address>.

Jeff



More information about the ubuntu-users mailing list