Skip to content

The Deska blog

Checking on Running Code From Your Phone

Learn methods for checking on running code from your phone using SSH, logs, and Deska for secure, remote monitoring of your development environment.

10 min read

Checking on running code from your phone has become a necessity for modern developers who manage long running processes, builds, or deployments. Whether you are waiting for a complex CI pipeline to finish or monitoring a local training script for a machine learning model, the ability to glance at your progress without being tethered to a desk is invaluable. This guide explores the technical strategies for maintaining visibility over your execution environments from a mobile device, ranging from traditional command line tools to integrated workspace solutions.

The Challenges of Mobile Code Monitoring

Monitoring code remotely is not as simple as opening a website. Mobile devices face specific constraints that make traditional desktop workflows difficult to replicate.

  1. Connectivity issues: Mobile networks are prone to latency and occasional drops, which can terminate active SSH sessions if not handled correctly.
  2. Screen real estate: Standard terminal output is often too wide for a vertical smartphone screen, requiring horizontal scrolling or font resizing that hinders readability.
  3. Security risks: Opening ports or exposing internal services to the public internet to enable remote access introduces significant vulnerabilities.
  4. Input limitations: Typing complex commands or navigating file structures on a virtual keyboard is slow and prone to errors.

To address these challenges, developers typically use a combination of persistent session managers, log aggregators, or dedicated remote access tools.

Traditional Methods for Remote Access

The most common way to check on running code is through a secure shell (SSH) connection. However, raw SSH is often insufficient for mobile use because if the connection drops, the process might stop or you might lose the ability to see the output.

Persistent Terminal Sessions

Tools like tmux or screen are essential when checking on running code from your phone. These utilities allow you to start a process on a server or desktop, detach the session, and reattach to it later from a different device. When you connect via a mobile SSH client, you simply run a command to reattach to the existing session. This ensures that even if your mobile signal fluctuates, the code continues to execute undisturbed.

Log Management and Tailing

If you do not need interactive control, tailing logs is often more efficient. By redirecting the output of your script to a file, you can use a mobile app to read that file via SFTP or a web based log viewer. This reduces the need for a constant active connection and provides a historical record of the execution if an error occurs while you are offline.

Comparison of Remote Monitoring Approaches

Different projects require different levels of visibility. The following table compares three common ways to monitor your work remotely.

MethodInteractivitySetup ComplexitySecurity Level
SSH with TmuxHighMediumHigh (with keys)
Log StreamingLowLowMedium
Remote DesktopHighHighVariable
Deska MobileHighLowHigh (Relay)

While remote desktop solutions provide a full visual of your environment, they are often bandwidth heavy and frustrating to use on small screens. For developers, a terminal centric or workspace centric approach usually provides better performance.

Using Deska for Mobile Monitoring

Deska offers a modern approach to checking on running code from your phone by extending its infinite canvas to a mobile application. Instead of managing individual SSH connections or configuring complex VPNs, the Deska mobile app allows you to pair your phone directly with your computer.

The architecture relies on a secure relay that eliminates the need for exposing ports. This is particularly useful for developers who prefer a local-first approach, where the code and files remain on the machine while the mobile app acts as a secure window into the active environment. Within the mobile app, you can view the same terminals and panels that are open on your desktop.

Managing Workspaces Remotely

When you use the mobile app, you are not just seeing a static screen. You can interact with your workspace by running new commands or checking the status of agents that might be writing code or debugging errors on your behalf. If you have an AI agent working on a task, you can monitor its progress through the mobile interface and intervene if it gets stuck.

Voice Control for Hands Free Monitoring

One unique feature of Deska is the integration of Ask Deska. Through voice commands on your mobile device, you can ask the assistant to check the status of a specific session or run a command. This is helpful when you are on the move and cannot easily type on a mobile keyboard. You might say a command to check if a build has finished, and the assistant can read back the final lines of the terminal output.

Security Considerations for Mobile Access

Security should be the primary concern when setting up any remote access method. Traditional methods often require port forwarding, which can be a gateway for unauthorized access if not configured correctly.

  • Use SSH keys instead of passwords: If you use SSH, disable password authentication entirely.
  • Use a VPN or Secure Relay: Instead of exposing your machine to the global internet, use a service that creates a private tunnel. The Deska remote access system uses a direct pairing method to keep data private.
  • Limit permissions: Ensure the user account you are accessing has only the necessary permissions to monitor the code, rather than full root access.

Best Practices for Mobile Workflows

To make the experience of checking on running code from your phone smoother, consider these workflow adjustments.

  • Verbose Logging: Ensure your code outputs enough information so that you can understand the state at a glance without needing to debug.
  • Notifications: Set up scripts to send a push notification or a message to a chat app when a long task completes. Deska provides notifications that can alert you to important events in your workspace.
  • Panel Organization: In Deska, organize your panels so that the most critical information is in the center of the canvas, making it easier to find when you zoom in from a mobile screen.

FAQ

How to check script progress on Android or iOS?

The most reliable way is using an SSH client like Termius or JuiceSSH combined with tmux. Alternatively, you can use the Deska mobile app to view your desktop terminals and browser panels directly without configuring server side utilities.

Is it safe to monitor local code from a public network?

It is only safe if you use encrypted tunnels. You should avoid opening ports on your router. Using a relay based system or a trusted VPN ensures that your session remains private even when using public Wi-Fi at a cafe or airport.

Can I run terminal commands from my phone?

Yes, you can run commands using a mobile terminal emulator or through the Deska mobile app. With Deska, you can also use Ask Deska to trigger commands via chat or voice, which is often faster than typing on a small screen.

Getting Started with Deska

If you are looking for a way to bridge the gap between your desktop development environment and your mobile device, you can download the Deska desktop app for Mac, Windows, or Linux. The workspace itself is free to use, and you can pair your mobile device by following the steps in the settings menu. This allows you to maintain full control over your data and storage while enjoying the flexibility of remote monitoring.