S
S
Sergey2018-11-06 09:32:44
linux
Sergey, 2018-11-06 09:32:44

How to SSH from Linux to Linux to access the GUI?

How to SSH from Linux to Linux to access the GUI?
There are 2 computers with different versions of Linux. On one GUI - KDE, on the other - GNOME. Only SSH passes through the system of internal corporate routing and firewalls between cities. How can one computer access the GUI of another and vice versa?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
J
jcmvbkbc, 2018-11-06
@jcmvbkbc

How to SSH from Linux to Linux to access the GUI?

Depends on what is meant by "GUI access". There are at least two options:
- the ability to run a GUI application on a remote machine with the interface displayed on the local machine
- the ability to interact from the local machine with the remote machine's display
The first is done either by stupidly launching the application inside the session ssh -X, or by launching a remote vnc server and connecting to it. "Stupid" - because if the connection is broken in the first case, the application will be lost, and in the second - not, it will be possible to rejoin vnc and continue.
The second is done by running x11vncon a remote machine with a parameter -displaypointing to the desired X11 display and then connecting to this vnc server.

A
Alexey Cheremisin, 2018-11-06
@leahch

There are several options.
1) go to the remote computer through ssh -X [email protected]Next, run whatever you like. But in this case, you will remain in the environment in which the local computer is running.
2) configure the xdmcp login on the remote computer, this is done in the display-manager (I don’t know which one you have, the settings are different for everyone), on the local computer you need to configure the local display-manager (DM) to access the remote session.
3) use xnest, but the remote DM must also be set to xdmcp. Here you will have the environment of the remote computer in a separate window.
4) you can install x2go on a remote computer, use the x2go client on a local computer, it will also work in the window. Yes, the window can be expanded to full screen.
In fact, the problem is that xwindow allows only one window manager to work (responsible for placing and rendering windows), so it will not be possible to combine desktops and kde and gnome at once.

D
Denis, 2018-11-06
@notwrite

Allow forwarding X11

D
Denis, 2018-11-15
@Sat0shi

SSH X11forwarding yes.

H
hubbiton, 2018-11-15
@hubbiton

Install x2go-server on one, x2go-client on the other. Further there everything is intuitively clear. You just need to select the settings that are adequate to the connection speed.

R
rPman, 2018-11-16
@rPman

ssh -R localport:server on the remote network or localhost:port on this server [email protected]
get a connection to your server configured to forward all connections to the local port to the port on the server on the remote LAN (or localhost if the same server )
on a remote machine, set up remote control (ubuntu has a vino server, it is turned on simply with a checkbox in the settings, this is a normal vnc) on your machine, any vnc client (for windows, take tightvnc for example), port 5900 i.e. for example:
ssh -R 5900:localhost:5900 [email protected]
and in tightvnc connect to localhost

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question