Outils pour utilisateurs

Outils du site


linux:forward_x11

authoriser le forward x11

Of course, you need to properly install and configure your SSH server, which is on the same machine running your Linux graphic desktop environment (KDE, GNOME, Xfce, or whatever). Obviously, you MUST install your SSH server program. You can install it via ``sudo apt-get install openssh-server`` on Ubuntu Linux 7.10. I think you can easily figure out how to do so on other Linux distributions. Then edit the file ``/etc/ssh/ssh_config``. Make these lines be in that configuration file:

ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes

Now open /etc/ssh/sshd_config. Attention, the file name is sshd_config, not the same as previous one. Make sure this line be in this configuration file

```X11Forwarding yes```

Restart your SSH server. Now, go to your client computer, from which you will connect to this computer.

I have no idea on how to do next on Windows. If your client computer runs on Linux or Mac OS X, or other OS with X server running, go ahead.

If your client computer runs on Mac OS X, make sure that you have installed X11 for Mac OS X. Go to “Application”- > “Utilities” to start X11 and you will see an xterm terminal in front of you by default. If no such window, click “Applications” - > “Terminal”.

Now let's simply type

ssh -X user_name@the_server_IP_or_hostname.domainame

. For example, if my server is www.example.com and my username is NSF, I simply type

ssh -X NSF@www.example.com

. Accept the RAS key and enter your password.

Have logged in? Ok, the big show is coming. If your desktop is GNOME, then just type gnome-session . What do you see? The GNOME desktop is in front of you. If your desktop is others, such as KDE or Xfce, please refer to their docs on how to start them.

linux/forward_x11.txt · Dernière modification: 2019/01/25 15:56 (modification externe)