IoT devices like Raspberry Pis rarely sit on a network you control. They live behind CGNAT, on cellular data, or in a customer's home, and you still need a shell on them the day something breaks.
The usual way in is a chore. You forward a port on the router (if the ISP even gives you a public IP), open it in the firewall, set up sshd, then copy SSH keys to every device and keep them in sync as people join and leave. After all that, each connection still needs the right IP, port, and key, and every forwarded port is one more thing on the internet to watch. Multiply it by a few dozen Pis on a few dozen networks, and most of your time goes into plumbing.
This guide shows how we can manage a Raspberry Pi fleet with PinggyDevices instead. One install command connects a device, and from then on we open a terminal, edit files, and see who connected, all from the browser, with no port forwarding, firewall rules, or SSH keys. We tested it on a Mac.
What Managing a Raspberry Pi Fleet Takes
For example, say we want to manage a fleet of Raspberry Pi 5 boards on customer sites, one of which is pi-0042. We need a shell when something breaks, a quick way to fix a config file, and a record of who connected. With Pinggy Devices, each of those is a tab in one dashboard, and the Pis need nothing opened on the customer's network. The architecture is simple: each device runs a lightweight agent that dials out to the Pinggy cloud, maintaining an outbound connection. This means no inbound ports are exposed, and the device can be anywhere, even behind carrier-grade NAT or a strict corporate firewall.
Step 1: Connect Each Device with One Command
Pinggy Devices runs the Pinggy CLI as an agent on the device. The agent dials out to Pinggy and keeps that connection open, so there's no port to forward, no public IP to find, and no SSH server to set up. It works behind CGNAT too. On a single device, run:
curl -fsSL https://pinggy.io/install.sh | sh The script needs no sudo. It puts the binary in ~/.pinggy/bin/pinggy, then runs pinggy device login, which asks for your email and prints a Device Code. You recieve a 6-digit code by email to type in. If you approve from the email instead, check that the page shows the same Device Code; a different one means someone else started that sign-in.
For a fleet, the dashboard's Add device button gives a command with a device token that needs no keyboard, so it works from a provisioning script. Here's what it printed when we connected a Mac (token, device ID, and email replaced, download lines trimmed):
$ curl -fsSL https://pinggy.io/install.sh | DEVICE_AGENT_TOKEN=<TOKEN> sh Installed pinggy 0.6.11 to ~/.pinggy/bin/pinggy Manage this device: pinggy device status Show this device, and whether its agent runs pinggy device stop Stop the agent until the daemon starts again. The device shows offline pinggy device start Start the agent again after a stop pinggy device connect Same as start pinggy device remove Stop the agent and forget this machine's credential Starting the device agent in the background... ✔ Success: Running in the background as device <device-id> Signed in as you@example.com Start pinggy automatically when this computer starts? [Y/n] n To start pinggy when this computer starts, run: pinggy daemon service-install On an unattended device, answer y to that last question or run pinggy daemon service-install afterwards, so the agent comes back after a power cut. Two Raspberry Pi gotchas: the install script only ships x64 and arm64 binaries built against glibc, so you need the 64-bit Raspberry Pi OS, and on musl systems such as Alpine, you install with npm install -g pinggy instead.
Step 2: Open a Terminal from the Browser
Open the device in the Pinggy Devices dashboard, go to the Terminal tab, and click New shell. Each shell gets its own tab. There's no IP to look up and no key to load: if the device shows online, you're one click from a prompt.
Edge devices tend to have flaky networks, and the terminal is built for that. A shell keeps running when you close the browser tab or the device's connection drops for a while, and reopening the tab redraws the screen as you left it, so a long apt full-upgrade on a 4G link survives. Shells end on exit, after 30 minutes idle, after 8 hours regardless, or when the agent stops; anything longer belongs in tmux or a systemd unit.
The shell runs as the user who started pinggy, so start the agent as a normal account and use sudo when you need it. Per the Devices docs, Free covers 1 device with 1 shell; Pro and Enterprise allow 25 devices and 25 open shells per seat, at most 10 on one device.
Step 3: Manage Files without SCP
The Files tab (CLI 0.6.11 or later) replaces the SSH-and-scp routine for fixing a file. It opens in the agent user's home folder and lets you browse (hidden files included), check permissions and owners, make folders, and rename, copy, move, or delete, which covers most "fix one config file" jobs.
A few limits to know. Changes run with the agent user's permissions, and delete has no trash. Pinggy won't delete or move system folders, home folders, its own files, or a mounted disk. There's no upload or download, so to get a new file onto the device, fetch it from the Terminal tab.
File access is a per-device switch, and the person at the machine controls it. pinggy device login and pinggy device connect ask once whether the dashboard may reach the files. Change it later with:
pinggy device connect --files off # refuse file access from the dashboard pinggy device connect --files on # allow it again pinggy device status # shows whether file access is on A token install has no terminal to ask, so file access starts on. If some devices don't need it, add pinggy device connect --files off to your provisioning script.
Step 4: Control Who Can Reach Your Devices
With Pinggy Devices, access lives in one place: anyone who can sign in to your Pinggy account can open a shell on every device. Turn on 2-factor authentication and only invite the people who need it. To cut a device off, delete it or rotate its token in the dashboard; pinggy device remove only forgets the token on the machine itself.
The Activity tab lists each device's events, such as shells opened and closed, with source IP addresses, so you can see who connected and when. File changes from the Files tab don't show in it. For deeper auditing, you can export the activity logs and integrate them with your SIEM, but that's beyond this guide.
Advanced Considerations for Production Deployments
While the basics get you rolling, a production IoT fleet demands more thought. Let's discuss a few extra layers you might want to add.
Provisioning at Scale
If you're rolling out hundreds of Pis, manual token entry is impractical. Use a configuration management tool like Ansible or a custom imaging script to embed the token into the device's environment before it leaves your facility. You can also use the device token in a CI/CD pipeline to register new devices automatically as they boot.
Network Resilience
The agent is designed to be resilient, but you can make it even more robust. Use systemd to run the agent as a service with automatic restart. You can also set up a health check that pings the PinggyAPI and triggers a local restart if the agent dies unexpectedly. On cellular connections, consider using a watchdog timer or a periodic cron job to verify connectivity.
Security Hardening
Even though you're not opening ports, the agent itself is an attack surface. Keep the CLI updated, run it as a non-root user, and restrict which users can execute pinggy device connect. If a device is lost or stolen, immediately rotate its token and revoke access from the dashboard. For extra security, enable 2FA for all your Pinggy account users, and review the Activity log regularly.
Integrating with Your Existing Tooling
Pinggy Devices doesn't replace your entire monitoring stack, but it complements it. You can trigger shell commands from your alerting system (e.g., PagerDuty) using the Pinggy API, or you can write a script that opens a shell and runs a diagnostic when a device drops off the network. The terminal's persistent shell feature means you can leave a debug session running and revisit it later, which is invaluable for intermittent issues.
Comparing with Traditional VPN Solutions
A typical alternative is to set up a VPN (like WireGuard or OpenVPN) to the edge devices. That gives you full network access, but it also requires maintaining a VPN server, certificates, and a static endpoint. Pinggy Devices simplifies this by providing an on-demand shell and file access without the overhead of a full overlay network. It's a trade-off: you lose raw network-level access (like running a monitoring agent that polls ports), but you gain simplicity and reduced attack surface.
Cost Breakdown
Pinggy's Free plan is enough for one device and one shell, which is perfect for prototyping. As you scale, the Pro tier (which costs a few dollars per month) supports 25 devices. If you have a huge fleet, Enterprise pricing is available. In all cases, it's cheaper than maintaining a dedicated VPN server and the associated labor.
Real-World Scenario: A Field Fix
Imagine a customer calls at 2 a.m. saying their Pi-based kiosk is stuck. You open the dashboard, see the device is online, click the Terminal tab, and run systemctl status kiosk-service. It's crashed. You then use the Files tab to replace the config file with a corrected version from your laptop, and restart the service. The entire process takes two minutes, and you never had to ask the customer to do anything on their local network.
Conclusion
Start with one Pi: run the install command, open a terminal in the browser, and fix a file in the Files tab. Then put the token command in your provisioning script, turn on 2FA, and roll it out to the rest of teh fleet. Pinggy Devices removes the plumbing from IoT management, letting you focus on the actual work. Whether you're managing a handful of Raspberry Pis or a thousand sensors, the same pattern applies: no open ports, no complex VPNs, just a clean browser-based interface.
If you're tired of wrestling with port forwards and firewalls, give it a try. The setup takes minutes, and you'll wonder how you ever managed without it.



