PuTTY + Xming implements ssh forwarding for X11
Requirements analysis experiment environment configuration steps
1. Requirement Analysis
Some Linux programs cannot leave the window environment completely, or the operation is not convenient after leaving. Oracle is such a program. Most of its tool programs can be silently executed in command lines, such as OCI, DBCA, and NetCA, but it is more convenient to work in the graphic interface. Therefore, you need to use X11 XServer and XClient cross-network working principle for remote display. What's more convenient is that the SSHD remote Protocol fully supports X11 protocol forwarding, so that we can simply enable an sshd service on the server side to achieve Remote Desktop through X11 forwarding.
2. lab environment: SERVER: CentOS6, minimum installation, and sshd startup. Desktop: Windows 8.1, puTTY, and Xming. 3. configuration steps:
1. Install xterm on the server for testing
Yum install xterm
2. Install the xauth program on the server. sshd needs this program to execute X11 forwarding.
Yum install xauth
3. Edit the/etc/ssh/sshd_conf file on the server and activate X11 forwarding.
X11Forwarding yes
Restart sshd.
4. Verify that the server is successfully forwarded.
Echo $ DISPLAY
Result: localhost: 10.0 indicates that the configuration on the server is successful. Otherwise, if it is null, the configuration is incorrect.
5 install Xming on the desktop
This free program can be downloaded and installed on Windows, which is very simple and requires no configuration.
6. Start Xming on the desktop and configure PuTTY forwarding for X11
As Xserver, Xming must be started first. In the left-side Navigation Pane of PuTTY, select Connection SSH X11, select Enable X11forwarding In the right-side pane, save the settings, and re-open the session to the server.
7. Run the xterm Test Program