如何检测并连接到我的 Raspiberry Pi 3 (Raspbian) 上的隐藏 SSID? [英] How do I detect and connect to a hidden SSID on my Raspiberry Pi 3 (Raspbian)?

查看:20
本文介绍了如何检测并连接到我的 Raspiberry Pi 3 (Raspbian) 上的隐藏 SSID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何配置我的 Raspberry Pi 3(运行 Raspbian)以连接到隐藏网络?我知道这涉及编辑/etc/network/interfaces 文件和 wpa_supplicant.conf 文件.我遵循了一些其他指南,但是当我更改这些文件并重新启动时,我什至无法检测到可见网络,因为它们从我的 wifi 菜单中消失了.我想我只是用不正确的配置编辑这些文件.

How do I configure my Raspberry Pi 3 (running Raspbian) to connect to a hidden network? I know it involves editing the /etc/network/interfaces file and the wpa_supplicant.conf file. I've followed a few other guides, but when I make these file changes and reboot, I can't even detect visible networks, as they disappear from my wifi menu. I think I'm just editing these files with incorrect configurations.

推荐答案

首先在终端输入以下内容:

First, enter the following in the terminal:

sudo nano /etc/network/interfaces  

将interfaces文件编辑成这样,应该和默认的没有太大区别:

Edit the interfaces file to look like so, which shouldn't be too different from the default:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

接下来,我们将编辑 wpa_supplicant.conf 文件.在终端中输入以下内容:

Next, we will edit the wpa_supplicant.conf file. Enter the following in the terminal:

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

编辑这个配置文件的设置如下:

Edit the settings of this configuration file to be as such:

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1 
network={
        scan_ssid=1
        ssid="Your Hidden SSID"
        psk="Your SSID's Password"
        key_mgmt=WPA-PSK }

注意:您需要根据您的位置更改国家/地区"设置.此外,scan_ssid 必须设置为 1 才能检测隐藏的 SSID.输入隐藏网络的 SSID 名称和密码.保存这些更改,重新启动您的树莓派,然后它应该会在返回桌面时自动连接到隐藏网络.

Note: You will need to change the "country" setting based on your location. Also, scan_ssid must be set to 1 to be able to detect a hidden SSID. Input your SSID name and password for your hidden network. Save these changes, reboot your raspberry pi, and then it should be automatically connected to the hidden network upon returning to the desktop.

这篇关于如何检测并连接到我的 Raspiberry Pi 3 (Raspbian) 上的隐藏 SSID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆