<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ElAdawy</title>
    <description>The latest articles on DEV Community by ElAdawy (@sadawy).</description>
    <link>https://dev.to/sadawy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4237191%2F9216d1da-4da7-498e-ac1f-00fb058440d8.png</url>
      <title>DEV Community: ElAdawy</title>
      <link>https://dev.to/sadawy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sadawy"/>
    <language>en</language>
    <item>
      <title>How I manage my VPS from my phone (and undo it when I get it wrong)</title>
      <dc:creator>ElAdawy</dc:creator>
      <pubDate>Wed, 11 Nov 2026 19:43:27 +0000</pubDate>
      <link>https://dev.to/sadawy/how-i-manage-my-vps-from-my-phone-and-undo-it-when-i-get-it-wrong-cj4</link>
      <guid>https://dev.to/sadawy/how-i-manage-my-vps-from-my-phone-and-undo-it-when-i-get-it-wrong-cj4</guid>
      <description>&lt;p&gt;I run a handful of small Linux servers. A few websites, a couple of APIs in Docker, a database. No on-call team, just me. And of course things tend to break when I'm not at my desk.&lt;/p&gt;

&lt;p&gt;For years my "mobile setup" was a plain SSH app and a lot of careful typing. It works, but it's stressful. A phone keyboard has no Ctrl, no Esc, no Tab, and one typo in an nginx or sshd config can make a small problem a big one. I once locked myself out of a server while changing the SSH port from a train. That was the day I started building my own tool.&lt;/p&gt;

&lt;p&gt;It turned into an Android app called VpsPilot. This post is less about the app and more about the way of working it pushed me into, because I think the habits are useful whatever you use.&lt;/p&gt;

&lt;h2&gt;
  
  
  A terminal that is actually usable on a phone
&lt;/h2&gt;

&lt;p&gt;The first thing I needed was a terminal I didn't hate. VpsPilot has a key row above the keyboard with Esc, Ctrl, Alt, Tab, the arrows, Home and End, so Ctrl+C and Ctrl+R work like they do on a laptop. I can also keep a few sessions open on the same server.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyyntjk3pomrzus7zwy92.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyyntjk3pomrzus7zwy92.png" alt="The terminal with the key bar" width="540" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The SSH key is created on the phone and lives in the Android Keystore. The app can use it but can't read it out, and I set mine to unlock with my fingerprint. No private key file sitting in a Downloads folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Seeing the plan before anything runs
&lt;/h2&gt;

&lt;p&gt;This is the part that changed how I work. For the common jobs (installing updates, hardening SSH, turning on the firewall, setting up nginx with HTTPS, adding fail2ban, freeing up disk space) I don't type commands from memory anymore. I pick the task and the app shows me the plan first: every step and the exact commands it will run.&lt;/p&gt;

&lt;p&gt;Risky steps stop and ask. If I switch to another app, the run keeps going, and when a step needs me I get a notification with Run this step, Skip step or Stop workflow. On the lock screen it only says "A workflow needs you", so nothing about my servers shows up there.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feahikmi2a2ps0ag0fvqg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feahikmi2a2ps0ag0fvqg.png" alt="A notification asking before a risky step" width="540" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Mobile connections drop all the time. When that happens mid-run, the step keeps running on the server and the app reconnects on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Undo, which I now want everywhere
&lt;/h2&gt;

&lt;p&gt;Before a workflow touches config files, it saves a snapshot of them. When the run is done there's an "Undo these changes" button that puts the files back, checks the config and reloads the service.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr0yifenr2p5ps8ij4ew9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr0yifenr2p5ps8ij4ew9.png" alt="Undo these changes after a workflow run" width="540" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Changing SSH settings from a phone is a lot less nerve-wracking when you know you can roll back with one tap.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/w0e9MhFidwE" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Editing a config without breaking it
&lt;/h2&gt;

&lt;p&gt;Sometimes I just need to change one line. The editor saves a backup of the old version first, has "Save with sudo" for files owned by root, and for configs it knows it runs the real check before reloading anything: nginx -t, sshd -t, fail2ban-client -t. If the check fails, nothing gets reloaded.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F75ytri5gkguvfacn4pki.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F75ytri5gkguvfacn4pki.png" alt="The editor on an nginx config" width="540" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding problems before they find me
&lt;/h2&gt;

&lt;p&gt;There's a security check that reads the server and lists what's worth fixing: SSH settings, open ports, waiting updates, failed logins, fail2ban and a few more. Findings come sorted into "Important" and "Worth a look", and many have a "Fix with" button that opens the right workflow, with the same plan-first flow as above.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4sznsdlfekommz22dmya.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4sznsdlfekommz22dmya.png" alt="The security check" width="540" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The rest is the everyday stuff: restarting a Docker container and reading its logs, restarting a service, scheduled backups that run on the server itself (so they don't care if my phone is off), and deploying from a Git repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Habits I'd recommend, whatever tool you use
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Never edit a critical config without a backup you can restore in one step.&lt;/li&gt;
&lt;li&gt;Run the check before you reload (nginx -t, sshd -t). It takes a second.&lt;/li&gt;
&lt;li&gt;Keep a second SSH session open when you change SSH settings.&lt;/li&gt;
&lt;li&gt;On a phone, prefer steps you can read and review over typing from memory.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's really all VpsPilot does: it makes those habits the default.&lt;/p&gt;

&lt;p&gt;If you want to try it, it works with Debian, Ubuntu, Rocky Linux and AlmaLinux servers you can reach over SSH. There's no account, no ads and no tracking, and everything stays on your phone. There's a 14-day free trial, then $2.99 a month or $19.99 a year.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Google Play: &lt;a href="https://play.google.com/store/apps/details?id=com.vpspilot" rel="noopener noreferrer"&gt;VpsPilot on Google Play&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Website and docs: &lt;a href="https://vpspilot.app" rel="noopener noreferrer"&gt;vpspilot.app&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd really like to hear from people who self-host. What do you end up fixing from your phone most often, and what would you want a tool like this to do?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I used an AI assistant to help edit this post. The app, the servers and the mistakes are mine.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>devops</category>
      <category>linux</category>
      <category>selfhosted</category>
    </item>
  </channel>
</rss>
