IoT

How to Manage Remote IoT and Edge Fleets Without a VPN

December 2, 2026 7 min read Pinggy Blog
Share

In this article
The Pinggy Devices list in a browser showing greenhouse gateways online, connected through Pinggy to a group of Raspberry Pi 5 boards on 4G with no VPN

Many teams run small computers in places they don’t control: a Raspberry Pi on a shop’s Wi-Fi, a gateway behind a 4G router, a box in a customer’s office. When one of them stops working, we need to log in and fix it, and that is most of what managing a fleet means.

Most people set up a VPN for this, and with many devices it’s a lot of work. We rent a server with a public IP, install WireGuard on every device, make a key pair for each one and add each device to the server’s config. Then we still set up SSH and copy SSH keys to every device. If the VPN server goes down, we lose access to all of them. Tailscale makes the keys easier, but every device still needs a VPN client.

This guide shows how we can manage a fleet without any VPN, using Pinggy Devices. We run one command on each device, and every device shows up in a list in the browser. From there we can open a terminal, edit files, check CPU and memory, or open the device’s web UI.

Summary

  1. No VPN server and no VPN client. Each device runs the Pinggy CLI as an agent, installed with one command and no sudo. Nothing is opened on the device or its router.
  2. One command per device at provisioning. A device token from the dashboard connects a device with no keyboard, and pinggy daemon service-install brings it back after a power cut.
  3. The whole fleet in one browser tab. Every device gets a terminal, a Files tab, live CPU and memory, and a Tunnels tab for its web UI.
  4. Access is removed in one place. Delete a device or rotate its token in the dashboard, and turn on 2-factor authentication for the account.

What a VPN asks of every device

For example, say we look after 30 Raspberry Pi 5 gateways in greenhouses, named gh-01 to gh-30. Each one sits behind a 4G router, reads sensors and runs Node-RED on port 1880. Carrier networks put the router behind CGNAT, so nothing can connect in to it, and a technician only visits when something is physically broken.

Here’s what each approach puts on a gateway like gh-17, according to the WireGuard quickstart, Tailscale’s docs on auth keys and DERP relays, and the Pinggy Devices docs:

Your own WireGuard serverTailscalePinggy Devices
Runs on the PiWireGuard and sshdtailscaled, plus sshd or Tailscale SSHThe Pinggy CLI agent
Set up per deviceA key pair, a peer entry with its own IP on the server, an SSH keyAn auth key at provisioningA device token at provisioning
Server you runYes, with a public IP and an open UDP portNoNo
Behind 4G and CGNATWorks, with PersistentKeepalive = 25Works, through a relay when a direct path failsWorks
What you getNetwork access to the PiNetwork access, limited by your access rulesA terminal, files and tunnels in the browser
Cut a Pi offRemove its peer and its SSH keysRemove it in the admin consoleDelete it or rotate its token
What each Raspberry Pi in a fleet needs for remote access: a WireGuard server setup needs WireGuard, sshd, a key pair, a peer entry and an SSH key per device plus a VPN server; Tailscale needs tailscaled and an auth key; Pinggy Devices needs the Pinggy agent and one device token

A VPN is still the right tool when devices have to talk to each other, or to your servers on private IPs, say a Prometheus server scraping all 30 gateways. Pinggy Devices is for people managing devices: a shell, a file, a web UI. If that’s what most of your remote work looks like, the rest of this guide is all you need.

Step 1: Add one command to your provisioning

Pinggy Devices runs the Pinggy CLI as an agent on each device. The agent dials out to Pinggy over a connection it keeps open, so the router needs no forwarded port and the Pi needs no VPN client, public IP or SSH server.

The Raspberry Pi and IoT card from the Pinggy remote terminal page: reach a Pi behind a home router or CGNAT from anywhere, with no port forwarding, on 4G and 5G links where the carrier's NAT blocks inbound connections

Screenshot: pinggy.io/remote-terminal.

On the Pinggy Devices page, click Add device. The dashboard shows an install command with a token for that one device. Run it on the Pi as the account the browser shell should use, not as root:

bash
curl -fsSL https://pinggy.io/install.sh | DEVICE_AGENT_TOKEN='<TOKEN>' sh
~/.pinggy/bin/pinggy daemon service-install

The first line installs the CLI into ~/.pinggy/bin/pinggy without sudo and connects the device in the background. It asks for no email and no code, so it runs fine from a provisioning script.

The second line matters for a fleet. When the install runs with no terminal, it skips the “start at boot” question, so without this line a gateway drops off the list after its first power cut. On Linux it sets up a systemd user service; if it prints a loginctl enable-linger command, run that with sudo so the agent starts before anyone logs in. From CLI 0.7.0 the same step is called pinggy autostart on, and the old name only prints the new one, so check pinggy --version before you bake it into an image.

A few things to know before rolling it out to 30 devices:

  • Each device needs its own token. One token is one device, and the dashboard refuses a second machine using a token that’s already connected. Click Add device once per gateway and put each token in that device’s provisioning.
  • Use the 64-bit OS. The install script ships x64 and arm64 binaries built against glibc, so a Pi needs 64-bit Raspberry Pi OS. On Alpine and other musl systems, use npm install -g pinggy instead.
  • Check your plan. Free covers 1 device. Pro allows 25 devices per seat, so 30 gateways need 2 seats.

Step 2: See the fleet and open a terminal

Every connected device shows up in one list in the dashboard, named after its hostname. Open gh-17 and its page shows the hostname, OS, live CPU, load and memory, and an Activity tab with each event and its source IP. You recieve the same view for every device, whatever network it’s on.

The Terminal tab opens a shell with New shell, with no IP to look up and no key to load. On a shaky 4G link that matters: a shell keeps running when the browser tab closes or the connection drops for a while, and reopening the tab redraws the screen as you left it. A shell ends after 30 minutes idle or 8 hours, so put long jobs in tmux or a systemd unit.

The Terminal tab of a device in the Pinggy Devices dashboard, with the device shown online and a bash shell open in the browser next to the Overview, Tunnels and Activity tabs

Screenshot: pinggy.io/remote-terminal.

To fix a config file, the Files tab browses the device’s folders and renames, copies, moves or deletes files, without scp. It can’t upload or download, so fetch new files from the terminal.

The Files tab of a device in the Pinggy Devices dashboard, listing the home folder with one folder selected, Rename, Copy to, Move to and Delete actions, and a details panel with the folder's permissions and owner

Screenshot from the Pinggy Devices docs, with the device name and user name blurred.

We covered the terminal and Files tab in more detail in how to set up secure IoT device management without open ports.

Step 3: Reach a device’s web UI with a tunnel

With a VPN, you’d open Node-RED at the gateway’s VPN address, say http://10.8.0.17:1880. Without one, the Tunnels tab on the device page does that job. It lists the tunnels running on the device, starts, stops and restarts them, and starts a new tunnel from a config you define in the dashboard. Point a new HTTP tunnel at localhost:1880 and Node-RED on gh-17 gets a public HTTPS URL.

Tunnels started from the dashboard keep running even if you stop the device agent. That URL is reachable by anyone who has it, so protect it like any Pinggy tunnel, with basic auth or an IP allowlist, and stop it when you’re done.

Step 4: Remove access in one place

With a VPN, offboarding a person or retiring a device means removing a peer from the server, then removing SSH keys from every device the person could reach. With Pinggy Devices, access lives in your Pinggy account: anyone who can sign in to it can open a shell on every device, so turn on 2-factor authentication and invite only the people who need it.

To cut off one gateway, delete it or rotate its token in the dashboard, and its agent stops with a message that the token was refused. Running pinggy device remove on the device only forgets the token locally. That’s fine for a Pi you still hold, not for one that walked off a greenhouse shelf.

Troubleshooting

A gateway that goes offline after every reboot never got pinggy daemon service-install; run it from the device’s terminal the next time it’s online, or on site. Your plan allows 1 device means the Free plan is full. A greyed-out Terminal or Files tab means the device’s CLI is old (Files needs 0.6.11 or later), so run the install command again to update it.

Conclusion

Start with one gateway: click Add device, run the two commands, and open a terminal on it from the browser. If that covers what you’d have used the VPN for, add the commands to your provisioning and roll out to teh rest of the fleet.