PuTTY + Xming implements ssh forwarding for X11

Source: Internet
Author: User
Tags xming

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.