Answers
How to reboot or run a command on a remote Raspberry Pi from your phone
Two cases: the Pi still answers (send it a command), or it doesn't (power-cycle it). Plan for both before the Pi leaves your desk.
Asked on Raspberry Pi Forums, August 2023: “Controlling Raspberry Pi in remote location”
Short answer
If the Pi is up, any way of reaching a shell works from a phone: an SSH app over a tunnel or VPN, or a browser dashboard. If it's hung, software can't help: a hardware watchdog reboots it on its own, and a smart plug lets you cut the power.
When the Pi answers
- An SSH app (Termius, JuiceSSH) works if the Pi is reachable, which behind CGNAT means a tunnel or a VPN client on the phone.
- Fieldhand's dashboard works in the phone's browser and installs as an app; the terminal has a key bar for Esc, Tab, arrows and Ctrl. For something you do often, save it as a fleet command and run it on one Pi or a whole tag, now or on a schedule.
When it doesn't
Turn on the hardware watchdog so a hung Pi reboots itself:
# /etc/systemd/system.conf RuntimeWatchdogSec=15
After a reboot, systemd feeds the Pi's watchdog; if the kernel locks up, the board resets within 15 seconds. For a Pi that is off or stuck in a loop, a smart plug on its power supply is the last resort; keep it on a different network path if you can.
Know before you're called
An offline alert tells you the Pi dropped before a customer does; see alerts when a Pi goes offline.
By Abner Souza, who builds Fieldhand. Updated 2026-10-23. Something wrong or out of date? Write to support@fieldhand.dev.
Something wrong or missing on this page? Tell us.