Contents
- A prepared approach and a proven result are crucial
- Prepare a profile, identity, and independent recovery path
- After connecting, confirm the context
- Perform a small diagnostic set based on the symptom
- Leave long-running operations in an appropriate server environment
- Prepare the change, test it, and only then activate it
- Verify the service and user outcome
- When to stop working and move to another environment
- Frequently asked questions
App screenshots

A prepared approach and a proven result are crucial
A phone can be sufficient for diagnostics, editing a single configuration file, or a controlled intervention. The difficulty is not determined only by the performance of the device. The available network, the size of the interface, the authentication of the server identity, and the ability to return if you interrupt the only working access are important. The same decision that you can handle with several windows on a work computer may require more preparation on a phone.
It’s not necessary to move every job to mobile. A large migration, a large storage restore, or a complex incident may make sense to postpone to a suitable work environment. The goal of mobile management is to safely complete the selected task and know its boundaries. Simply sending a command does not complete the repair.
CH-J Tools Mobile 0.0.4 series provides direct SSH, SFTP, remote editor and other targeted features. It does not depend on an open desktop client. Check the specific build for iOS/iPadOS in TestFlight. However, the plan must allow for one active SSH connection and the actual behavior of the mobile application when locked.
Prepare a profile, identity, and independent recovery path
Before your first emergency, set up server profiles, supported keys, and trusted host fingerprints. Verify access over a network you actually use outside the office. If the server is only on an internal network, you need an appropriate VPN or other approved access. A publicly open SSH port is not an automatic substitute for proper access design.
Consider an unprivileged account and targeted elevation of privilege. The mobile profile should not include universal root access just for the convenience of selecting buttons. Also, verify that the diagnostics you need do not require the log reading group or separate sudo privileges. The client interface cannot bypass privileges that the account server does not provide.
Have an independent recovery path, such as your provider's console, in case of SSH, firewall, or network changes. The login credentials for this console should not be accessible only through the currently down server. Check your battery, mobile data, multi-factor login, and the ability to open the necessary instructions. A recovery plan that you have never tried remains a prerequisite.
After connecting, confirm the context
Start by verifying the account, host, and time. Profile names may be similar and you may have been left in a different directory after the last hit. For multiple environments, it is good to have clear records of production and test. On a small display, pay special attention to identification as part of the output or name may be out of view.
whoami
hostname
date -Is
pwd
uptimeCompare the result to the expected problem and the time of the event. A high CPU warning half an hour ago may not be the current state. If the access is preceded by a host key change warning, verify the change with a trusted source first. Do not assume a different server identity just to quickly start diagnostics.
The first commands should be read-only. It is easier to correct a faulty hypothesis after viewing the status than after a blanket restart of several services. Write down the time the check started, the specific symptom, and the desired result. The context created in this way will also help when you later pass the problem on to another administrator.
Perform a small diagnostic set based on the symptom
For an unavailable web service, you need to distinguish between a process failure, an application error, and a network path problem. For a full disk, check for the correct volume, inodes, and growing files. Don't run every available command without a goal: long outputs don't compare well on a phone and can mask a useful error.
# Příklad pro systém se systemd; nginx nahraďte skutečnou službou.
systemctl --failed --no-pager
systemctl status nginx --no-pager -l
journalctl -u nginx --since "20 minutes ago" -n 100 --no-pager
df -h
df -i
free -hUnit names and available tools vary by distribution. Insufficient permissions to read a log does not mean that no log exists. View a reasonable time window and look for correlation to the symptom. A historical error on an unrelated request is not automatically a reason to restart a healthy service.
Think of built-in mobile monitoring as a view available in the active application. In the series described, it is not about continuous background monitoring. For long-term metrics and alerts, you need server-side or external monitoring that is independent of whether the phone is unlocked. A single instantaneous data point is no substitute for a time series.
Leave long-running operations in an appropriate server environment
The mobile network may change the address and the operating system may restrict the application from running. In CH-J Tools Mobile of this series, Vault locks will disconnect SSH. Therefore, do not expect every long command to complete and display the result as it would with a stable connection. First, find out how the specific operation behaves after losing the terminal.
For interactive work that is convenient to keep on the server, tmux can help, if it is installed and enabled. The session runs on the remote server and can be connected to after a new login. However, it does not protect against server restarts, process failures, or erroneous commands. It also does not create an audit trail of the entire work.
# Tyto příkazy jsou pro vzdálený server s tmux.
tmux new -s mobilni-sprava
# Po novém přihlášení:
tmux attach -t mobilni-spravaLong-term maintenance is often better done with an existing operational mechanism with status, logging, and a rollback procedure. When reconnecting, first check that the original job is still running. Restarting the same migration just because of a missing terminal can be more dangerous than the network outage itself.
Prepare the change, test it, and only then activate it
Confirm the correct path, environment, and publishing method before editing the file. The remote editor may save to a different location than where the service is currently reading from. Prepare a suitable recoverable copy or use established versioning. Backups of sensitive configuration must preserve confidentiality and must not expose it to a public website.
Use a service-specific test. For example, with NGINX, a corresponding configuration check precedes activation; for other services, the same switches have different meanings or do not exist. Furthermore, syntactic validity does not confirm the correct domain, certificate authority, or backend functionality. Also, prepare to validate the user result.
The 0.0.4 mobile editor performs remote content conflict checking, but it is not a universal solution for concurrent management. If a file has been changed by another administrator, find out and merge the correct changes. Do not work around the conflict by deleting the target. Uploading via SFTP and activating the service are two different operations with different risks.
Verify the service and user outcome
After the intervention, check the activation output, unit status, and new errors. Then verify the actual query or action that the issue affected. A running process may be returning bad content, and HTTP 200 may be an application error page. Also consider cache, DNS, and a specific replica when testing over a public network.
Compare the same symptom before and after the change. If you were addressing a specific slow request, don't close the fix based solely on the decreased average CPU. If you were freeing up disk, verify the capacity of the volume in question and the health of the service writing to it. Roll back based on the result, not after all known context is lost.
The operational record includes time, detection, changed location, and verification. Do not write the login secret into a shared incident. At the end, delete unnecessary working copies, end the session, and lock the application. Work from the phone should end with the same clear status handover as a regular workplace intervention.
When to stop working and move to another environment
If you cannot safely read the difference, distinguish the correct host, or obtain the necessary recovery access, choose another work path. In an acute incident, the correct mobile step may be to diagnose and hand over to a competent administrator. There is no need to make a major risky change just because you managed to open a terminal.
- The correct server and account have been verified.
- Diagnostics have specific findings and a time context.
- The change has a corresponding test and recovery path.
- Interruption of the mobile connection will not cause uncontrolled task repetition.
- The result was verified from both the service and user perspectives.
This approach allows you to handle many common situations from your phone. The biggest benefit is not the number of buttons in the client, but the readiness and accuracy of decisions. A small, proven fix is more valuable than a long series of interventions where you don't know later which one changed the resulting behavior.
Frequently asked questions
Does the desktop client need to be running for me to administer the server from a mobile device?
CH-J Tools Mobile connects directly to the server. However, you need an available network and the appropriate permissions.
Does mobile monitoring run continuously in the background?
Not in the described series. For continuous supervision, use a separate monitoring system.
Will tmux protect against server outage?
No. It helps preserve the server terminal session when the client disconnects, but does not ensure survival of a server restart or failure.
Is it enough to check the running process after editing?
No. Also verify the specific user result and any new errors.
Detailed documentation
systemd: service management and status →
systemd: working with journal →