Xming + PuTTY remote Linux host in Windows

Source: Internet
Author: User
Tags xming
Article Title: Xming + PuTTY remote Linux host in Windows. 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.

Xming + PuTTY a GUI program for remote Linux Hosts in Windows

Cause
The subsequent work requires some numerical simulation, so I opened an account on my brother's workstation. The workstation runs RHEL4. To say remote SSH, even the FTerm is sufficient. However, it is troublesome to use the graphic interface to view the computing result. With VNC, resources are consumed, and VNC is not doing well in win.

 Reference
Remember the Computer Experiment of the last semester's large-scale design. Dozens of people used XShell SSH to run the Solaris Sun workstation in the experimental center from the PC running Windows XP, and run the Cadence tool set, that is, it has a GUI. So I thought, can I do the same? I sent an email to the Debian Chinese and Ubuntu Chinese mail lists, raised this question, sorted it out based on the replies on the list, and basically understood how to do it, the details are still unclear, so let's talk about it first.

I. Principles
Linux/Unix X Windows have network transparency. In the X Window System, there is a unified Server responsible for the interaction between various programs and input/output devices, such as monitors, keyboards, and mice, each GUI application interacts with the Server through the network protocol. Therefore, for any application, the difference between local running and remote running is only that the address of X Server is different, and nothing else. Therefore, if you run an X Server in Windows, you can easily remotely run a Linux application with a GUI. At the same time, OpenSSH has the X forwarding function, which can forward the X program of the Linux host to the client through the SSH pipeline. Therefore, PuTTY is used to send the received interaction of the X program forwarded by the host to the X Server running on the local Windows system for management and display. In principle, this allows you to remotely use Linux GUI programs.

Configurations required on the host:
# Vi/etc/ssh/sshd_config

Uncomment this line -- manually add it if this line does not exist:
X11Forwrding yes

This configuration allows ssh x forwarding. In essence, there is a certain security risk in doing so. SSH cannot guarantee the security of your data. However, this is enough in general.

Ii. Install Xming
You need to run an X Server on a local Windows Server. There are many choices: the X Server under Cygwin is probably the most famous, but it seems a little exaggerated to install a "relatively huge" Cygwin for such a small thing; except Cygwin, there are also two well-known commercial software available, Xwin32 and Xmanager. Xmanager was used in the IC experiment last semester, and it feels smooth and easy to use. However, although Xmanager can be used for trial, but after all, it is still commercial software. There is another option. Here we will talk about the open-source software Xming.

Xming is an open-source X Server with simple configuration and powerful functions. It can run in the XP/2003/Vista operating system of M $.

Xming home page: http://www.straightrunning.com/XmingNotes/
Xming SourceForge page: http://sourceforge.net/projects/xming/

Download xming-setup.exe from sourceforge( the latest version is 6.9.0.31) and install it locally. Run the XLaunch in the Start menu for the first time to generate an initial configuration file. For simple use, no special configuration is required. Use the default configuration. For specific configuration and use of Xming, refer to the Manual of Xming. Remember the number in the "Display number" marked in. The default value 0 is used here.

After it is started, an "X" icon will appear in the tray area. This indicates that Xming is running. Hover the mouse over it to see the currently used "Display number ".

[1] [2] Next page

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.