question

About accessing graphic programs through ssh

It's convenient to run programs like Dolphin or Thunar without having to have keyboard, mouse and monitor connected.

You must make some changes to the configuration files for the ssh server and the ssh client. Also allow access to the X server over the network.

Create the file /etc/X11/Xwrapper.config In the file it should be written:
allowed_users=anybody

In the file /etc/ssh/sshd_config it should be written: (server configuration)
AllowTcpForwarding yes
X11Forwarding yes

In the file /etc/ssh/ssh_config it should be written: (client configuration)
ForwardX11 yes
ForwardX11Trusted yes

If you want root to be allowed to launch programs, add this to the /etc/profile file
export XAUTHORITY=/home/"not-root-user"/.Xauthority


Login


We welcome feedback and bug reports
epost
I gratefully accept any comments!