← 返回综合新闻
Engadget 综合新闻 2026-11-22 05:45

您应该使用免费的 Raspberry Pi 工具来远程访问它

The free Raspberry Pi tool you should be using to access it remotely

使用这个方便的工具避免转发端口。

当您无法直接访问设备时,远程访问 Raspberry Pi 对于家庭项目来说非常宝贵。过去,登录 Pi 意味着设置 VNC 服务或 SSH 隧道,这两者都需要端口转发。这对于初学者来说可能会很麻烦,并且对于某些项目来说可能存在潜在的安全风险。值得庆幸的是,有一种更好的方法可以远程访问 Raspberry Pi,而无需争论端口。

Raspberry Pi Connect 是由 Raspberry Pi 创建的程序,可让您从网络外部通过互联网与 Pi 设备进行通信。它很方便,不需要端口转发,并且可以让您在网络之外访问您的 Pi。最好的部分是,如果您的设备运行 Bookworm 或更高版本,Connect 会自动与您的设备配合使用。旧设备的 Connect 选项有限,但只要您运行 Pi OS 或其 Lite 变体,您就可以像在 SSH 终端中运行一些命令一样快速进行设置。

Raspberry Pi Connect 利用 WebRTC,这是两个网络浏览器之间通过安全隧道运行的点对点连接。它不需要在您的 Pi 设备上安装任何第三方软件,并且其安全性使其能够绕过严格的防火墙和受限的 NAT。由于它通过互联网运行,因此您需要访问互联网和 Raspberry Pi Connect 帐户才能使用它。

Connect 提供两个关键功能:屏幕共享和远程 shell。远程 shell 充当在浏览器中运行的 SSH 终端,非常适合远程监控或运行命令。屏幕共享可让您将浏览器变成 Pi 的远程桌面。屏幕共享通过 Wayland 会话运行,该会话将使用 Pi 的资源并需要活动的桌面会话;远程 shell 没有。如果您使用的是较旧的 Pi 型号,并且想要使用 Connect 的屏幕共享功能,请务必更新其 Pi 操作系统。 Pi OS Lite 和 X11 不兼容此功能。

使用 Raspberry Pi Connect 相当简单。您需要两件事:安装在 Pi 设备上的 Pi Connect 和互联网连接。 Pi Connect 提供完整包和精简包。完整的软件包包括连接到显示器的 Pi 设备的屏幕共享兼容性,而 Lite 软件包仅用于远程访问。要安装该软件包,请与您的 Pi 设备启动 SSH 会话并运行以下命令:

安装任一软件包后,键入“rpi-connect on”以启用对互联网的访问。

现在 Connect 已准备就绪,是时候访问您的 Raspberry Pi 了。前往 connect.raspberrypi.com 并登录您的 Pi 帐户。如果您没有,您可以从该菜单中创建一个。登录后,您需要将 Pi 设备链接到您的帐户。有关如何链接 Pi 设备的具体说明可以在 Raspberry Pi 网站上的“入门”部分下找到。关联后,登录您的帐户,选择“连接方式”按钮,然后选择您首选的连接选项。如果您需要对 Raspberry Pi 进行进一步更改,您可以通过登录并连接到您的设备轻松完成。

原文(English)

Avoid forwarding ports by using this handy tool.

Remote access to a Raspberry Pi is invaluable for home projects when you can't access your device directly. In the past, logging into your Pi meant setting up a VNC service or SSH tunneling, both of which require port forwarding. It can be a hassle for beginners and a potential security risk for certain projects. Thankfully, there's a better way to access your Raspberry Pi remotely without wrangling ports.

Raspberry Pi Connect is a program created by Raspberry Pi that lets you communicate with your Pi unit over the internet from outside your network. It's convenient, doesn't require port forwarding and lets you access your Pi when you're outside your network. The best part is that Connect works automatically with your device if it's running Bookworm or later. Older devices have limited options with Connect, but as long as you're running Pi OS or its Lite variant, you can set it up as quickly as running a few commands in an SSH terminal.

Raspberry Pi Connect leverages WebRTC, a peer-to-peer connection between two web browsers that runs through a secure tunnel. It doesn't require any third-party software on your Pi unit, and its secure nature lets it bypass strict firewalls and restricted NATs. Since it runs over the internet, you will need internet access and a Raspberry Pi Connect account to use it.

Connect offers two key features: screen sharing and remote shell. The remote shell acts as an SSH terminal that runs in your browser, making it ideal for monitoring or running commands remotely. Screen share lets you turn your browser into a remote desktop for your Pi. Screen shares run through a Wayland session, which will use the Pi's resources and require an active desktop session; remote shell does not. If you're using an older Pi model, be sure to update its Pi OS if you want to use Connect's screen sharing feature. Pi OS Lite and X11 are not compatible with this feature.

Using Raspberry Pi Connect is fairly easy. You'll need two things: Pi Connect installed on your Pi unit and an internet connection. Pi Connect comes in full and lite packages. The full package includes screen-sharing compatibility for Pi units connected to a display, while the lite package is for remote access only. To install the package, start an SSH session with your Pi unit and run the following:

After installing either package, type "rpi-connect on" to enable access to the internet.

Now that Connect is ready, it's time to access your Raspberry Pi. Head to connect.raspberrypi.com and sign in to your Pi account. If you don't have one, you can create one from that menu. Once logged in, you'll need to link your Pi unit to your account. Specific instructions on how to link your Pi unit can be found on the Raspberry Pi website, located under the "Get Started" section. Once linked, sign in to your account, select the "Connect via" button, and then pick your preferred connection option. If you need to make further changes to your Raspberry Pi, you can do so easily by logging in and connecting to your device.

本文为自动翻译,可能存在偏差,请以原文为准。发布于 2026-11-22 05:45

阅读原文 ↗https://www.engadget.com/2319090/free-raspberry-pi-tool-acce