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

查看:292
本文介绍了如何在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天全站免登陆