X11 forwarding over SSH
Also in the app Edgely Console: Documentation tab, Protocols, SSH Terminal, X11 Forwarding
To open a server's graphical programs (xclock, a Java installer, virt-manager) in windows on this computer, edit the connection and turn on X11 forwarding (shown when the connection has SSH). The terminal then asks the server to forward X11; run the program from the shell and its window opens here.
It needs an X server on this computer, which Edgely does not install:
- macOS: XQuartz (xquartz.org), started.
- Windows: an X server such as VcXsrv (started with its default settings) or X410, listening on
127.0.0.1:0. - Linux: the desktop's own; in a Wayland session, Xwayland provides one through
DISPLAY.
The editor checks right away whether an X server answers and says what to install or start when none does; the terminal says it again at connect. The server must allow it too (X11Forwarding yes in its sshd_config, and xauth installed there).
It is off by default, for a reason: a program forwarded this way can read this computer's screen and keyboard while the session is open. Turn it on only for servers you trust. Edgely gives the server a cookie made up for the connection and checks it on every window, so the real one never leaves this computer. Through a jump host, only the connection you open forwards X11.