Article Title: Use SSH to implement X11 forwarding. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
There are multiple ways to connect to a remote server or workstation. You can use NoMachine's NX server or GPL solution FreeNX, other tools are similar to RealVNC or VNC. remote control software allows you to view and interact with desktop applications over the network.
One way to enhance communication security is to use SSH Through the X11 tunnel or port forwarding technology. SSH is developed to replace insecure telnet, ftp, rlogin, and rsh software, freeNX can use this technology perfectly. In this article, I will show you how to use SSH to implement X11 forwarding without any additional software. In addition, I will explain how to run Linux applications on the windows xp client using PuTTY and X-Deep/32.
To inspire you, I will explain what is needed in a short section. I will remotely access two machines:
OpenSUSE 10.2 running KDE and Debian 4.0 running Gnome
Client machines I use OpenSUSE including the ssh client and windows xp using Putty. From the perspective of ssh, remote machines are servers and local machines are clients. The preparation of the experiment environment is as follows:
Step 1: Prepare an ssh server
First, you must install the ssh software package on your server. I will use the OS release to provide the OpenSSH software package. Check how to find and install the rpm package in the two releases, in some cases, it is already installed on the server (it may be installed as a standard package when installing the system ).
If you build software from the source code and confirm that X Forwarding is supported during compilation, the binary software package of ssh 3.2 or later includes runtime X detection.
At the same time, make sure that the following line exists in your/etc/ssh2/sshd2_config file:
AllowX11Forwarding yes
Run the following command to start the sshd service:
/Etc/init. d/sshd start
Service sshd start
[1] [2] [3] Next page