X programs
Open an X program… runs one graphical program on one of your SSH hosts and shows its window in a screen tab, on a computer, a phone or a tablet. You do not need a desktop on the host, a VNC server that keeps running, or X11 forwarding. New in ZestSSH 4.0.
What the host needs
Section titled “What the host needs”- Linux or another Unix whose SSH sign-in runs commands with
sh. A host whose sign-in runs only a fixed command, or Windows’ OpenSSH server, cannot run X programs. - TigerVNC’s Xvnc and xauth. ZestSSH never installs anything on a host. If one is missing, it says so and gives the command for the host’s package manager (ZS-1809), for example:
| System | Install command |
|---|---|
| Debian, Ubuntu | sudo apt install tigervnc-standalone-server xauth |
| Fedora, RHEL, Rocky, Alma | sudo dnf install tigervnc-server-minimal xorg-x11-xauth |
| Arch | sudo pacman -S tigervnc xorg-xauth |
| openSUSE | sudo zypper install xorg-x11-Xvnc xauth |
How to open one
Section titled “How to open one”- Find an SSH, Mosh or Eternal Terminal host on the Hosts page.
- On a computer: right-click it, then Tools > Open an X program….
- On a phone or tablet: open the host’s menu (its more button), then Open an X program… under Tools.
- Under Program, type one line, as you would type it in a terminal on that host, for example
xterm,gedit notes.txtorvirt-manager. - Choose Open.
The program opens in a tab named after it and the host, for example “xterm on web-01”. It is sized to the window it opens in. On a phone it opens in landscape.
Recent on this device lists the programs you opened on that host (up to 8, newest first); tap one to open it again. Forget these clears the list. The list stays on this device, in its encrypted database: it is never synced and never in a backup.
What happens on the host
Section titled “What happens on the host”ZestSSH signs in to the host as it does for a terminal, with the host’s key, network, jump hosts and host key check, and opens no terminal. It runs a small script that starts a private X server (Xvnc) with its own display and a fresh cookie, reachable only through a socket in a new folder only your account can read, with no network port. The program runs on it, and ZestSSH shows its screen through the same SSH connection.
When the program ends, its tab closes and says so (“xterm ended. Its screen closed with it.”), with Run again. When you close the tab, the program and its X server are stopped and their folder is removed. Nothing is installed or left on the host.
The program’s own output is kept by the app (the last 4 KB) for an error’s details, never written to a file on the host.
In the app
Section titled “In the app”- An X program is a screen tab. It takes the screen’s bar and menu: see Remote screens (VNC and RDP).
- It counts as one session on the free plan, as a terminal does. See Plans and limits.
- Duplicate, a split and Open again open the same program again, never the host’s terminal.
- An X program is not reopened when ZestSSH starts again.
- In a team vault whose sessions are watched, an X program does not open (ZS-1807), as a screen does not.
When it does not open
Section titled “When it does not open”| Code | What it means | What to do |
|---|---|---|
| ZS-1809 | The host has no Xvnc or no xauth. | Install both (the commands above), then open the program again. |
| ZS-1810 | The private X server did not start: no writable temporary folder, Xvnc stopped as it started, or no answer within 20 seconds. | Try again. Check that /tmp (or TMPDIR) is writable for your account, and that Xvnc -version prints TigerVNC’s version. |
| ZS-1811 | The program ended as it started. Exit status 127 means the host has no program by that name. | Check the name and arguments. A program that hands its window to a copy already running needs to be asked for a new one (firefox --new-instance, gnome-terminal --wait). |
Copy details on the error has what the host said.
Next steps
Section titled “Next steps”- Remote screens (VNC and RDP): a whole desktop in a tab.
- SSH: the host the program runs on.