PuTTY + Xming implements ssh forwarding for X11

Source: Internet
Author: User
Tags xming

PuTTY + Xming implements ssh forwarding for X11

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.

After logging on to sshd, The. XAuthority file is generated in the user's home directory.

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

PuTTY + Xming for Oracle image Installation

Some simple and practical modifications to the original settings when using PuTTY

How to Use Putty to implement remote logon control on Linux platform

How to connect Putty to Ubuntu in VMWare

VMware + Linux + Putty environment Configuration

Use PuTTY key authentication mechanism to remotely log on to Linux

This article permanently updates the link address:

Related Article

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.